Delete unused function gnc-_split_reg_handle_exchange_cb.

This commit is contained in:
John Ralls 2015-10-11 15:15:07 -07:00
parent 0baf078b6f
commit 734ecce36d
2 changed files with 9 additions and 18 deletions

View File

@ -164,8 +164,6 @@ void gnc_split_reg_size_allocate( GtkWidget *widget,
gpointer user_data );
void gnc_split_reg_handle_exchange_cb (GtkWidget *w, gpointer data);
static void gnc_split_reg_class_init( GNCSplitRegClass *klass );
static void gnc_split_reg_init( GNCSplitReg *gsr );
static void gnc_split_reg_init2( GNCSplitReg *gsr );
@ -391,7 +389,7 @@ gsr_create_table( GNCSplitReg *gsr )
gchar *state_section;
const GncGUID * guid;
Account * account;
account = gnc_ledger_display_leader(gsr->ledger);
guid = xaccAccountGetGUID(account);
state_section = g_strconcat (STATE_SECTION_REG_PREFIX, " ", (gchar*)guid_to_string (guid), NULL);
@ -1894,7 +1892,7 @@ gnc_split_reg_sort_notes_cb(GtkWidget *w, gpointer data)
}
void
void
gnc_split_reg_set_sort_reversed(GNCSplitReg *gsr, gboolean rev)
{
Query *query = gnc_ledger_display_get_query( gsr->ledger );
@ -1902,16 +1900,6 @@ gnc_split_reg_set_sort_reversed(GNCSplitReg *gsr, gboolean rev)
gnc_ledger_display_refresh( gsr->ledger );
}
void
gnc_split_reg_handle_exchange_cb (GtkWidget *w, gpointer data)
{
GNCSplitReg *gsr = data;
SplitRegister *reg = gnc_ledger_display_get_split_register (gsr->ledger);
/* XXX Ignore the return value -- we don't care if this succeeds */
(void)gnc_split_register_handle_exchange (reg, TRUE);
}
static void
gnc_split_reg_record (GNCSplitReg *gsr)
{

View File

@ -250,7 +250,7 @@ gnc_split_register_check_debcred (SplitRegister *reg,
}
}
}
return TRUE;
}
@ -302,7 +302,7 @@ gnc_split_register_check_account (SplitRegister *reg,
cell->cell.value);
if (!new_acct)
return FALSE;
split = gnc_split_register_get_current_split(reg);
gnc_split_register_set_cell_fractions (reg, split);
@ -1151,7 +1151,7 @@ gnc_split_register_check_cell (SplitRegister *reg, const char *cell_name)
LEAVE("account check failed");
return FALSE;
}
/* See if we are leaving a debit or credit cell */
if (!gnc_split_register_check_debcred (reg, cell_name))
{
@ -1287,10 +1287,13 @@ gnc_split_register_xfer_dialog(SplitRegister *reg, Transaction *txn,
return xfer;
}
/* This function checks to see if we need to determine an exchange rate.
/** Check to see if we need to determine an exchange rate.
* If we need to determine an exchange rate, then pop up the dialog.
* If the dialog does not complete successfully, then return TRUE.
* Return FALSE in all other cases (meaning "move on")
* @param reg the register to operate on
* @param force_dialog pop a dialog even if we don't think we need it.
* @return whether more handling is required.
*/
gboolean
gnc_split_register_handle_exchange (SplitRegister *reg, gboolean force_dialog)