mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Code clean up, remove unused variables
This commit is contained in:
parent
39232d9ef9
commit
fbd9a36415
@ -173,7 +173,6 @@ gnc_plugin_csv_export_register_cmd (GtkAction *action,
|
|||||||
GncMainWindowActionData *data)
|
GncMainWindowActionData *data)
|
||||||
{
|
{
|
||||||
Query *query;
|
Query *query;
|
||||||
GList *splits;
|
|
||||||
Account *acc;
|
Account *acc;
|
||||||
|
|
||||||
GncPluginPage *page = gnc_main_window_get_current_page (data->window);
|
GncPluginPage *page = gnc_main_window_get_current_page (data->window);
|
||||||
|
@ -93,7 +93,7 @@ gnumeric_create_popup_menu_list (GSList *elements,
|
|||||||
GdkEventButton *event)
|
GdkEventButton *event)
|
||||||
{
|
{
|
||||||
GtkWidget *menu = gtk_menu_new ();
|
GtkWidget *menu = gtk_menu_new ();
|
||||||
GtkWidget *item, *label;
|
GtkWidget *item;
|
||||||
|
|
||||||
for (; elements != NULL ; elements = elements->next)
|
for (; elements != NULL ; elements = elements->next)
|
||||||
{
|
{
|
||||||
|
@ -875,7 +875,6 @@ void gnc_gen_trans_list_add_trans_with_ref_id(GNCImportMainMatcher *gui, Transac
|
|||||||
GtkTreeModel *model;
|
GtkTreeModel *model;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
GNCImportMatchInfo *selected_match;
|
GNCImportMatchInfo *selected_match;
|
||||||
GncGUID *pending_match_guid;
|
|
||||||
gboolean match_selected_manually;
|
gboolean match_selected_manually;
|
||||||
g_assert (gui);
|
g_assert (gui);
|
||||||
g_assert (trans);
|
g_assert (trans);
|
||||||
|
@ -452,7 +452,6 @@ static void
|
|||||||
init_match_picker_gui(GNCImportMatchPicker * matcher)
|
init_match_picker_gui(GNCImportMatchPicker * matcher)
|
||||||
{
|
{
|
||||||
GtkBuilder *builder;
|
GtkBuilder *builder;
|
||||||
gboolean show_reconciled;
|
|
||||||
|
|
||||||
/* DEBUG("Begin..."); */
|
/* DEBUG("Begin..."); */
|
||||||
|
|
||||||
|
@ -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 *gnc_ofx_kvp_get_assoc_account(const Account* investment_account)
|
||||||
{
|
{
|
||||||
Account *result = NULL;
|
|
||||||
GncGUID *income_guid= NULL;
|
GncGUID *income_guid= NULL;
|
||||||
g_assert(investment_account);
|
g_assert(investment_account);
|
||||||
qof_instance_get (QOF_INSTANCE (investment_account),
|
qof_instance_get (QOF_INSTANCE (investment_account),
|
||||||
|
@ -528,7 +528,6 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
|
|||||||
gchar *new_id = NULL;
|
gchar *new_id = NULL;
|
||||||
gint64 denom = 0;
|
gint64 denom = 0;
|
||||||
gnc_commodity *currency;
|
gnc_commodity *currency;
|
||||||
Transaction * txn;
|
|
||||||
|
|
||||||
// these arguments are needed
|
// these arguments are needed
|
||||||
g_return_if_fail (store && book);
|
g_return_if_fail (store && book);
|
||||||
|
@ -727,10 +727,6 @@ gnc_template_register_save_debcred_cell (BasicCell * cell,
|
|||||||
{
|
{
|
||||||
SRSaveData *sd = save_data;
|
SRSaveData *sd = save_data;
|
||||||
SplitRegister *reg = user_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);
|
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) ||
|
g_return_if_fail (gnc_basic_cell_has_name (cell, FDEBT_CELL) ||
|
||||||
|
@ -603,7 +603,6 @@ gnc_split_register_get_fg_color_internal (VirtualLocation virt_loc,
|
|||||||
const guint32 red_color = color_table[COLOR_NEGATIVE];
|
const guint32 red_color = color_table[COLOR_NEGATIVE];
|
||||||
guint32 fg_color;
|
guint32 fg_color;
|
||||||
const char * cell_name;
|
const char * cell_name;
|
||||||
gboolean is_current;
|
|
||||||
gnc_numeric value;
|
gnc_numeric value;
|
||||||
Split *split;
|
Split *split;
|
||||||
|
|
||||||
|
@ -407,7 +407,6 @@ static void
|
|||||||
gnucash_register_configure (GnucashSheet *sheet, gchar * state_section)
|
gnucash_register_configure (GnucashSheet *sheet, gchar * state_section)
|
||||||
{
|
{
|
||||||
GNCHeaderWidths widths;
|
GNCHeaderWidths widths;
|
||||||
GnucashRegister *greg;
|
|
||||||
Table *table;
|
Table *table;
|
||||||
GList *node;
|
GList *node;
|
||||||
gchar *key;
|
gchar *key;
|
||||||
|
@ -198,7 +198,6 @@ set_reports_view_and_model(CustomReportDialog *crd)
|
|||||||
{
|
{
|
||||||
GtkCellRenderer *renderer;
|
GtkCellRenderer *renderer;
|
||||||
GtkTreeModel *model;
|
GtkTreeModel *model;
|
||||||
GtkTreeViewColumn * col;
|
|
||||||
gint colnum;
|
gint colnum;
|
||||||
|
|
||||||
crd->namerenderer = gtk_cell_renderer_text_new();
|
crd->namerenderer = gtk_cell_renderer_text_new();
|
||||||
|
@ -658,7 +658,6 @@ gnc_plugin_page_report_option_change_cb(gpointer data)
|
|||||||
SCM dirty_report = scm_c_eval_string("gnc:report-set-dirty?!");
|
SCM dirty_report = scm_c_eval_string("gnc:report-set-dirty?!");
|
||||||
const gchar *old_name;
|
const gchar *old_name;
|
||||||
gchar *new_name;
|
gchar *new_name;
|
||||||
gchar *new_name_escaped;
|
|
||||||
|
|
||||||
g_return_if_fail(GNC_IS_PLUGIN_PAGE_REPORT(data));
|
g_return_if_fail(GNC_IS_PLUGIN_PAGE_REPORT(data));
|
||||||
report = GNC_PLUGIN_PAGE_REPORT(data);
|
report = GNC_PLUGIN_PAGE_REPORT(data);
|
||||||
|
@ -153,7 +153,6 @@ error_handler(const char *str)
|
|||||||
gboolean
|
gboolean
|
||||||
gnc_run_report (gint report_id, char ** data)
|
gnc_run_report (gint report_id, char ** data)
|
||||||
{
|
{
|
||||||
gchar *free_data;
|
|
||||||
SCM scm_text;
|
SCM scm_text;
|
||||||
gchar *str;
|
gchar *str;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user