Code clean up, remove unused variables

This commit is contained in:
Robert Fewell 2017-07-23 12:07:38 +01:00 committed by John Ralls
parent 39232d9ef9
commit fbd9a36415
12 changed files with 1 additions and 15 deletions

View File

@ -173,7 +173,6 @@ gnc_plugin_csv_export_register_cmd (GtkAction *action,
GncMainWindowActionData *data)
{
Query *query;
GList *splits;
Account *acc;
GncPluginPage *page = gnc_main_window_get_current_page (data->window);

View File

@ -93,7 +93,7 @@ gnumeric_create_popup_menu_list (GSList *elements,
GdkEventButton *event)
{
GtkWidget *menu = gtk_menu_new ();
GtkWidget *item, *label;
GtkWidget *item;
for (; elements != NULL ; elements = elements->next)
{

View File

@ -875,7 +875,6 @@ void gnc_gen_trans_list_add_trans_with_ref_id(GNCImportMainMatcher *gui, Transac
GtkTreeModel *model;
GtkTreeIter iter;
GNCImportMatchInfo *selected_match;
GncGUID *pending_match_guid;
gboolean match_selected_manually;
g_assert (gui);
g_assert (trans);

View File

@ -452,7 +452,6 @@ static void
init_match_picker_gui(GNCImportMatchPicker * matcher)
{
GtkBuilder *builder;
gboolean show_reconciled;
/* DEBUG("Begin..."); */

View File

@ -31,7 +31,6 @@ static const char *KEY_ASSOC_INCOME_ACCOUNT = "ofx/associated-income-account";
Account *gnc_ofx_kvp_get_assoc_account(const Account* investment_account)
{
Account *result = NULL;
GncGUID *income_guid= NULL;
g_assert(investment_account);
qof_instance_get (QOF_INSTANCE (investment_account),

View File

@ -528,7 +528,6 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
gchar *new_id = NULL;
gint64 denom = 0;
gnc_commodity *currency;
Transaction * txn;
// these arguments are needed
g_return_if_fail (store && book);

View File

@ -727,10 +727,6 @@ gnc_template_register_save_debcred_cell (BasicCell * cell,
{
SRSaveData *sd = save_data;
SplitRegister *reg = user_data;
const char *formula;
char *error_loc;
gnc_numeric amount;
gboolean parse_result;
GHashTable *parser_vars = g_hash_table_new(g_str_hash, g_str_equal);
g_return_if_fail (gnc_basic_cell_has_name (cell, FDEBT_CELL) ||

View File

@ -603,7 +603,6 @@ gnc_split_register_get_fg_color_internal (VirtualLocation virt_loc,
const guint32 red_color = color_table[COLOR_NEGATIVE];
guint32 fg_color;
const char * cell_name;
gboolean is_current;
gnc_numeric value;
Split *split;

View File

@ -407,7 +407,6 @@ static void
gnucash_register_configure (GnucashSheet *sheet, gchar * state_section)
{
GNCHeaderWidths widths;
GnucashRegister *greg;
Table *table;
GList *node;
gchar *key;

View File

@ -198,7 +198,6 @@ set_reports_view_and_model(CustomReportDialog *crd)
{
GtkCellRenderer *renderer;
GtkTreeModel *model;
GtkTreeViewColumn * col;
gint colnum;
crd->namerenderer = gtk_cell_renderer_text_new();

View File

@ -658,7 +658,6 @@ gnc_plugin_page_report_option_change_cb(gpointer data)
SCM dirty_report = scm_c_eval_string("gnc:report-set-dirty?!");
const gchar *old_name;
gchar *new_name;
gchar *new_name_escaped;
g_return_if_fail(GNC_IS_PLUGIN_PAGE_REPORT(data));
report = GNC_PLUGIN_PAGE_REPORT(data);

View File

@ -153,7 +153,6 @@ error_handler(const char *str)
gboolean
gnc_run_report (gint report_id, char ** data)
{
gchar *free_data;
SCM scm_text;
gchar *str;