Skip to content

Commit

Permalink
[import matcher] Make related functions adjacent
Browse files Browse the repository at this point in the history
gnc_gen_trans_list_add_trans just wraps
gnc_gen_trans_list_add_trans_with_ref_id.
  • Loading branch information
jralls committed Dec 13, 2022
1 parent e116a4f commit 5519a9d
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions gnucash/import-export/import-main-matcher.c
Expand Up @@ -2189,21 +2189,6 @@ refresh_model_row (GNCImportMainMatcher *gui,
gtk_tree_selection_unselect_all (selection);
}

void
gnc_gen_trans_list_add_trans (GNCImportMainMatcher *gui, Transaction *trans)
{
Account* acc = NULL;
Split* split = NULL;
int i=0;

split = xaccTransGetSplit (trans, 0);
acc = xaccSplitGetAccount (split);
defer_bal_computation (gui, acc);

gnc_gen_trans_list_add_trans_with_ref_id (gui, trans, 0);
return;
}/* end gnc_import_add_trans() */

void
gnc_gen_trans_list_show_reconcile_after_close_button (GNCImportMainMatcher *info,
gboolean reconcile_after_close,
Expand All @@ -2219,6 +2204,22 @@ gnc_gen_trans_list_get_reconcile_after_close_button (GNCImportMainMatcher *info)
return info->reconcile_after_close;
}


void
gnc_gen_trans_list_add_trans (GNCImportMainMatcher *gui, Transaction *trans)
{
Account* acc = NULL;
Split* split = NULL;
int i=0;

split = xaccTransGetSplit (trans, 0);
acc = xaccSplitGetAccount (split);
defer_bal_computation (gui, acc);

gnc_gen_trans_list_add_trans_with_ref_id (gui, trans, 0);
return;
}/* end gnc_import_add_trans() */

void
gnc_gen_trans_list_add_trans_with_ref_id (GNCImportMainMatcher *gui, Transaction *trans, guint32 ref_id)
{
Expand Down

0 comments on commit 5519a9d

Please sign in to comment.