Skip to content

Java front-end: remove unused parameters #2483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions jbmc/src/java_bytecode/java_bytecode_convert_method.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,6 @@ void java_bytecode_convert_methodt::convert(
if((!m.is_abstract) && (!m.is_native))
method_symbol.value = convert_instructions(
m,
method_type,
method_symbol.name,
to_java_class_type(class_symbol.type).lambda_method_handles());
}

Expand Down Expand Up @@ -989,8 +987,6 @@ static std::size_t get_bytecode_type_width(const typet &ty)

codet java_bytecode_convert_methodt::convert_instructions(
const methodt &method,
const code_typet &method_type,
const irep_idt &method_name,
const java_class_typet::java_lambda_method_handlest &lambda_method_handles)
{
const instructionst &instructions=method.instructions;
Expand Down Expand Up @@ -3151,7 +3147,6 @@ bool java_bytecode_convert_methodt::is_method_inherited(
get_inherited_component(
classname,
methodid,
classname,
symbol_table,
class_hierarchy,
false);
Expand All @@ -3171,7 +3166,6 @@ irep_idt java_bytecode_convert_methodt::get_static_field(
get_inherited_component(
class_identifier,
component_name,
symbol_table.lookup_ref(current_method).type.get(ID_C_class),
symbol_table,
class_hierarchy,
true);
Expand Down
2 changes: 0 additions & 2 deletions jbmc/src/java_bytecode/java_bytecode_convert_method_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ class java_bytecode_convert_methodt:public messaget

codet convert_instructions(
const methodt &,
const code_typet &,
const irep_idt &,
const java_class_typet::java_lambda_method_handlest &);

const bytecode_infot &get_bytecode_info(const irep_idt &statement);
Expand Down
1 change: 0 additions & 1 deletion jbmc/src/java_bytecode/java_bytecode_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,6 @@ static void create_stub_global_symbols(
get_inherited_component(
class_id,
component,
"java::" + id2string(parse_tree.parsed_class.name),
symbol_table,
class_hierarchy,
true);
Expand Down
6 changes: 0 additions & 6 deletions jbmc/src/java_bytecode/java_object_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ class java_object_factoryt
void gen_nondet_pointer_init(
code_blockt &assignments,
const exprt &expr,
const irep_idt &class_identifier,
allocation_typet alloc_type,
const pointer_typet &pointer_type,
size_t depth,
Expand Down Expand Up @@ -670,9 +669,6 @@ bool initialize_nondet_string_fields(
/// The code block we are building with initialization code.
/// \param expr:
/// Pointer-typed lvalue expression to initialize.
/// \param class_identifier:
/// Name of the parent class. Used to initialize the `@class_identifier` among
/// others.
/// \param alloc_type:
/// Allocation type (global, local or dynamic)
/// \param depth:
Expand All @@ -688,7 +684,6 @@ bool initialize_nondet_string_fields(
void java_object_factoryt::gen_nondet_pointer_init(
code_blockt &assignments,
const exprt &expr,
const irep_idt &class_identifier,
allocation_typet alloc_type,
const pointer_typet &pointer_type,
size_t depth,
Expand Down Expand Up @@ -1149,7 +1144,6 @@ void java_object_factoryt::gen_nondet_init(
gen_nondet_pointer_init(
assignments,
expr,
class_identifier,
alloc_type,
pointer_type,
depth,
Expand Down
4 changes: 0 additions & 4 deletions jbmc/src/java_bytecode/java_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,6 @@ std::string pretty_print_java_type(const std::string &fqn_java_type)
/// trying to resolve a reference to A.b, component_class_id is "A".
/// \param component_name: component basename to search for. If searching for
/// A.b, this is "b".
/// \param user_class_id: class identifier making reference to the sought
/// component. The user class is relevant when determining whether package-
/// scoped components are visible from a particular use site.
/// \param symbol_table: global symbol table.
/// \param class_hierarchy: global class hierarchy.
/// \param include_interfaces: if true, search for the given component in all
Expand All @@ -343,7 +340,6 @@ std::string pretty_print_java_type(const std::string &fqn_java_type)
resolve_inherited_componentt::inherited_componentt get_inherited_component(
const irep_idt &component_class_id,
const irep_idt &component_name,
const irep_idt &user_class_id,
const symbol_tablet &symbol_table,
const class_hierarchyt &class_hierarchy,
bool include_interfaces)
Expand Down
1 change: 0 additions & 1 deletion jbmc/src/java_bytecode/java_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ std::string pretty_print_java_type(const std::string &fqn_java_type);
resolve_inherited_componentt::inherited_componentt get_inherited_component(
const irep_idt &component_class_id,
const irep_idt &component_name,
const irep_idt &user_class_id,
const symbol_tablet &symbol_table,
const class_hierarchyt &class_hierarchy,
bool include_interfaces);
Expand Down
1 change: 1 addition & 0 deletions jbmc/src/java_bytecode/select_pointer_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
/// \param pointer_type: The pointer type replace
/// \param generic_parameter_specialization_map map of types for all generic
/// parameters in the current scope
/// \param ns Namespace for type lookups
/// \return A pointer type where the subtype may have been modified
pointer_typet select_pointer_typet::convert_pointer_type(
const pointer_typet &pointer_type,
Expand Down