Skip to content

Commit

Permalink
[-Wunused-variable] - remove
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcohen committed Feb 16, 2023
1 parent 8a20bca commit 4eb022c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions gnucash/gnome-utils/gnc-option-gtk-ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1771,13 +1771,11 @@ class GncGtkPlotSizeUIItem : public GncOptionGtkUIItem
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(px_button)))
{
option.set_alternate(false);
auto spin{g_list_nth_data(widgets, 1)};
option.set_value(gtk_spin_button_get_value(GTK_SPIN_BUTTON(get_widget())));
}
else
{
option.set_alternate(true);
auto spin{g_list_nth_data(widgets, 3)};
option.set_value(gtk_spin_button_get_value(GTK_SPIN_BUTTON(get_widget())));
}
}
Expand Down
3 changes: 0 additions & 3 deletions gnucash/gnome-utils/gnc-report-combo.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ static void
gnc_report_combo_class_init (GncReportComboClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS(klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass);

object_class->get_property = gnc_report_combo_get_property;
object_class->dispose = gnc_report_combo_dispose;
Expand Down Expand Up @@ -237,7 +236,6 @@ select_active_and_check_exists (GncReportCombo *grc)
GtkTreeModel *model = gtk_combo_box_get_model (GTK_COMBO_BOX(priv->combo));
GtkTreeIter iter;
gboolean valid_iter = gtk_tree_model_get_iter_first (model, &iter);
QofBook *book = gnc_get_current_book ();
gchar *tmp;

while (valid_iter)
Expand Down Expand Up @@ -446,7 +444,6 @@ gboolean
gnc_report_combo_is_warning_visible_for_active (GncReportCombo *grc)
{
GncReportComboPrivate *priv;
gboolean missing = FALSE;

g_return_val_if_fail (grc != NULL, FALSE);
g_return_val_if_fail (GNC_IS_REPORT_COMBO(grc), FALSE);
Expand Down
2 changes: 0 additions & 2 deletions gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ void GncPreTrans::set (GncTransPropType prop_type, const std::string& value)
// Drop any existing error for the prop_type we're about to set
m_errors.erase(prop_type);

gnc_commodity *comm = nullptr;
switch (prop_type)
{
case GncTransPropType::UNIQUE_ID:
Expand Down Expand Up @@ -397,7 +396,6 @@ bool GncPreTrans::is_multi_currency()

void GncPreSplit::UpdateCrossSplitCounters ()
{
auto acct = static_cast<Account *> (nullptr);
if (m_account && *m_account)
{
auto acct = *m_account;
Expand Down
3 changes: 0 additions & 3 deletions gnucash/import-export/import-main-matcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,6 @@ gnc_gen_trans_set_price_to_selection_cb (GtkMenuItem *menuitem,

GtkTreeView *treeview = GTK_TREE_VIEW(info->view);
GtkTreeModel *model = gtk_tree_view_get_model (treeview);
GtkTreeStore *store = GTK_TREE_STORE (model);
GtkTreeSelection *selection = gtk_tree_view_get_selection (treeview);
GList *selected_rows = gtk_tree_selection_get_selected_rows (selection, &model);

Expand All @@ -1065,9 +1064,7 @@ gnc_gen_trans_set_price_to_selection_cb (GtkMenuItem *menuitem,
time64 post_date = xaccTransGetDate(trans);
Split *split = gnc_import_TransInfo_get_fsplit (row->trans_info);
Account *src_acc = xaccSplitGetAccount (split);
gnc_commodity *trans_curr = xaccTransGetCurrency (trans);
Account *dest_acc = gnc_import_TransInfo_get_destacc (row->trans_info);
gnc_commodity *acc_comm = xaccAccountGetCommodity (dest_acc);
gnc_numeric dest_value = gnc_import_TransInfo_get_dest_value (row->trans_info);

XferDialog *xfer = gnc_xfer_dialog(GTK_WIDGET (info->main_widget), src_acc);
Expand Down
1 change: 0 additions & 1 deletion libgnucash/core-utils/gnc-filepath-utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ get_user_data_dir ()
static bfs::path
get_user_data_dir()
{
char *retval = NULL;
NSFileManager*fm = [NSFileManager defaultManager];
NSArray* appSupportDir = [fm URLsForDirectory:NSApplicationSupportDirectory
inDomains:NSUserDomainMask];
Expand Down

0 comments on commit 4eb022c

Please sign in to comment.