Skip to content

Commit

Permalink
Refactor: remove unused function declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
positively-charged committed Jul 11, 2017
1 parent 2218136 commit 27f5c28
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 18 deletions.
3 changes: 0 additions & 3 deletions src/codegen/chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ static void do_load( struct codegen* codegen );
static void do_mimp( struct codegen* codegen );
static void do_aimp( struct codegen* codegen );
static void do_mexp( struct codegen* codegen );
static bool mexp_array( struct var* var );
static bool mexp_zeroinit_scalar( struct var* var );
static bool mexp_nonzeroinit_scalar( struct var* var );
static void do_mstr( struct codegen* codegen );
static bool mstr_var( struct var* var );
static void do_astr( struct codegen* codegen );
Expand Down
4 changes: 0 additions & 4 deletions src/codegen/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ static void visit_cast( struct codegen* codegen, struct result* result,
struct cast* cast );
static void visit_suffix( struct codegen* codegen, struct result* result,
struct node* node );
static void visit_object( struct codegen* codegen, struct result* result,
struct node* node );
static void visit_object_part( struct codegen* codegen, struct result* result,
struct node* node );
static void visit_subscript( struct codegen* codegen, struct result* result,
struct subscript* subscript );
static void subscript_array( struct codegen* codegen,
Expand Down
2 changes: 0 additions & 2 deletions src/parse/dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ static void read_ref( struct parse* parse, struct ref_reading* reading );
static void read_struct_ref( struct parse* parse,
struct ref_reading* reading );
static bool is_array_ref( struct parse* parse );
static void read_ref_storage( struct parse* parse,
struct ref_reading* reading );
static void read_array_ref( struct parse* parse, struct ref_reading* reading );
static void read_ref_func( struct parse* parse, struct ref_reading* reading );
static void read_after_ref( struct parse* parse, struct dec* dec );
Expand Down
5 changes: 0 additions & 5 deletions src/parse/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ static bool in_main_module( struct parse* parse );
static void finish_wadauthor( struct parse* parse );
static void read_imported_libs( struct parse* parse );
static void import_lib( struct parse* parse, struct import_dirc* dirc );
static struct library* get_previously_processed_lib( struct parse* parse,
struct file_entry* file );
static struct library* find_lib( struct parse* parse,
struct file_entry* file );
static void append_imported_lib( struct parse* parse, struct library* lib );
static void determine_needed_library_links( struct parse* parse );
static void determine_hidden_objects( struct parse* parse );
static void collect_private_objects( struct parse* parse, struct library* lib,
Expand Down
3 changes: 0 additions & 3 deletions src/parse/stmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ static struct buildmsg* read_buildmsg( struct parse* parse,
static void read_expr_stmt( struct parse* parse,
struct stmt_reading* reading );
static struct label* alloc_label( const char* name, struct pos* pos );
static struct import* read_single_import( struct parse* parse );
static struct import_item* read_selected_import_items( struct parse* parse );
static struct import_item* read_import_item( struct parse* parse );
static void read_assert( struct parse* parse, struct stmt_reading* reading );
static struct assert* alloc_assert( struct pos* pos );

Expand Down
1 change: 0 additions & 1 deletion src/semantic/dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ static void present_ref_element( struct initz_pres* pres, struct dim* dim,
struct structure_member* member );
static void refnotinit( struct semantic* semantic, struct initz_pres* pres,
struct pos* pos );
static void calc_dim_size( struct dim*, struct structure* );
static bool test_func_return_spec( struct semantic* semantic,
struct func* func );
static bool test_func_ref( struct semantic* semantic, struct func* func );
Expand Down

0 comments on commit 27f5c28

Please sign in to comment.