Code clean up, comment out some additional static defines

These functions are commented out in the code and so not used so stop
them showing up for defined but not used.
This commit is contained in:
Robert Fewell 2017-07-23 12:34:37 +01:00 committed by John Ralls
parent 1002576cef
commit f31516a0f2
3 changed files with 11 additions and 3 deletions

View File

@ -109,11 +109,14 @@ static void gnc_budget_view_init(GncBudgetView *budget_view);
static void gnc_budget_view_finalize(GObject *object);
static void gbv_create_widget(GncBudgetView *view);
#if 0
static gboolean gbv_button_press_cb(
GtkWidget *widget, GdkEventButton *event, GncBudgetView *view);
#endif
#if 0
static gboolean gbv_key_press_cb(
GtkWidget *treeview, GdkEventKey *event, gpointer userdata);
#endif
static void gbv_row_activated_cb(
GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *col,
GncBudgetView *view);
@ -569,7 +572,7 @@ gbv_button_press_cb(GtkWidget *widget, GdkEventButton *event,
}
#endif
#if 0
/** \brief Key press action for gnc budget view.
*/
static gboolean
@ -601,7 +604,7 @@ gbv_key_press_cb(GtkWidget *treeview, GdkEventKey *event, gpointer userdata)
gtk_tree_view_set_cursor(tv, path, col, TRUE);
return TRUE;
}
#endif
/** \brief gnc budget view actions for resize of treeview.
*/

View File

@ -163,12 +163,14 @@ static GtkActionEntry gnc_plugin_page_budget_actions [] =
static guint gnc_plugin_page_budget_n_actions =
G_N_ELEMENTS (gnc_plugin_page_budget_actions);
#if 0
static const gchar *actions_requiring_account[] =
{
"OpenAccountAction",
"OpenSubaccountsAction",
NULL
};
#endif
/** Short labels for use on the toolbar buttons. */
static action_toolbar_labels toolbar_labels[] =

View File

@ -800,6 +800,8 @@ gnc_split_register_get_associate_entry (VirtualLocation virt_loc,
return s;
}
#if 0
// this code is not used yet
static char
gnc_split_register_get_associate_value (SplitRegister *reg,
VirtualLocation virt_loc)
@ -812,6 +814,7 @@ gnc_split_register_get_associate_value (SplitRegister *reg,
return gnc_recn_cell_get_flag (cell);
}
#endif
static const char *
gnc_split_register_get_type_entry (VirtualLocation virt_loc,