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 ); 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_class_init( GNCSplitRegClass *klass );
static void gnc_split_reg_init( GNCSplitReg *gsr ); static void gnc_split_reg_init( GNCSplitReg *gsr );
static void gnc_split_reg_init2( GNCSplitReg *gsr ); static void gnc_split_reg_init2( GNCSplitReg *gsr );
@ -1902,16 +1900,6 @@ gnc_split_reg_set_sort_reversed(GNCSplitReg *gsr, gboolean rev)
gnc_ledger_display_refresh( gsr->ledger ); 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 static void
gnc_split_reg_record (GNCSplitReg *gsr) gnc_split_reg_record (GNCSplitReg *gsr)
{ {

View File

@ -1287,10 +1287,13 @@ gnc_split_register_xfer_dialog(SplitRegister *reg, Transaction *txn,
return xfer; 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 we need to determine an exchange rate, then pop up the dialog.
* If the dialog does not complete successfully, then return TRUE. * If the dialog does not complete successfully, then return TRUE.
* Return FALSE in all other cases (meaning "move on") * 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 gboolean
gnc_split_register_handle_exchange (SplitRegister *reg, gboolean force_dialog) gnc_split_register_handle_exchange (SplitRegister *reg, gboolean force_dialog)