[gnome-commander/gcmd-1-3] Killed dead code
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-commander/gcmd-1-3] Killed dead code
- Date: Sun, 14 Jun 2009 12:03:30 -0400 (EDT)
commit 3811f584ed82e66948572b5a9ba4e6654b542529
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Jun 14 18:01:25 2009 +0200
Killed dead code
ChangeLog | 7 +++++++
src/gnome-cmd-data.cc | 3 ---
src/gnome-cmd-data.h | 1 -
src/gnome-cmd-options-dialog.cc | 17 ++---------------
4 files changed, 9 insertions(+), 19 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 08c7907..76be6b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-06-14 Piotr Eljasiak <epiotr use pl>
+
+ * src/gnome-cmd-data.cc:
+ * src/gnome-cmd-data.h:
+ * src/gnome-cmd-options-dialog.cc:
+ Killed dead code
+
2009-06-11 Piotr Eljasiak <epiotr use pl>
* src/gnome-cmd-xml-config.cc:
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 4997035..fffab58 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -1094,7 +1094,6 @@ GnomeCmdData::GnomeCmdData()
honor_expect_uris = FALSE;
skip_mounting = FALSE;
- dir_cache_size = 10;
main_win_width = 600;
main_win_height = 400;
@@ -1341,7 +1340,6 @@ void GnomeCmdData::load()
use_gcmd_block = gnome_cmd_data_get_bool ("/programs/use_gcmd_block", FALSE);
device_only_icon = gnome_cmd_data_get_bool ("/devices/only_icon", FALSE);
- dir_cache_size = gnome_cmd_data_get_int ("/options/dir_cache_size", 10);
use_ls_colors = gnome_cmd_data_get_bool ("/colors/use_ls_colors", FALSE);
priv->start_dirs[LEFT] = gnome_cmd_data_get_string ("/options/start_dir_left", g_get_home_dir ());
@@ -1713,7 +1711,6 @@ void GnomeCmdData::save()
gnome_cmd_data_set_bool ("/programs/use_gcmd_block", use_gcmd_block);
gnome_cmd_data_set_bool ("/devices/only_icon", device_only_icon);
- gnome_cmd_data_set_int ("/options/dir_cache_size", dir_cache_size);
gnome_cmd_data_set_bool ("/colors/use_ls_colors", use_ls_colors);
const gchar *quick_connect_uri = gnome_cmd_con_get_uri (GNOME_CMD_CON (quick_connect));
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index 5b0f1da..5357dcb 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -201,7 +201,6 @@ struct GnomeCmdData
gboolean honor_expect_uris;
gboolean skip_mounting;
- gint dir_cache_size;
gint main_win_width;
gint main_win_height;
diff --git a/src/gnome-cmd-options-dialog.cc b/src/gnome-cmd-options-dialog.cc
index ec92745..63476dd 100644
--- a/src/gnome-cmd-options-dialog.cc
+++ b/src/gnome-cmd-options-dialog.cc
@@ -62,8 +62,8 @@ inline GtkWidget *create_font_picker (GtkWidget *parent, gchar *name)
static GtkWidget *create_general_tab (GtkWidget *parent)
{
- GtkWidget *frame, *hbox, *vbox, *cat, *cat_box, *table;
- GtkWidget *radio, *check, *spin, *label;
+ GtkWidget *frame, *hbox, *vbox, *cat, *cat_box;
+ GtkWidget *radio, *check;
frame = create_tabframe (parent);
hbox = create_tabhbox (parent);
@@ -144,17 +144,6 @@ static GtkWidget *create_general_tab (GtkWidget *parent)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio), gnome_cmd_data.alt_quick_search);
- // Directory options
- table = create_table (parent, 2, 2);
- cat = create_category (parent, table, _("Directory options"));
- gtk_box_pack_start (GTK_BOX (vbox), cat, FALSE, TRUE, 0);
-
- label = create_label (parent, _("Directory cache size"));
- table_add (table, label, 0, 1, (GtkAttachOptions) 0);
- spin = create_spin (parent, "dir_cache_size", 5, 50, gnome_cmd_data.dir_cache_size);
- table_add (table, spin, 1, 1, GTK_FILL);
-
-
return frame;
}
@@ -166,7 +155,6 @@ inline void store_general_options (GnomeCmdOptionsDialog *dialog)
GtkWidget *rmb_popup_radio = lookup_widget (GTK_WIDGET (dialog), "rmb_popup_radio");
GtkWidget *ft_regex_radio = lookup_widget (GTK_WIDGET (dialog), "ft_regex_radio");
GtkWidget *case_sens_check = lookup_widget (GTK_WIDGET (dialog), "case_sens_check");
- GtkWidget *dir_cache_size = lookup_widget (GTK_WIDGET (dialog), "dir_cache_size");
GtkWidget *alt_quick_search = lookup_widget (GTK_WIDGET (dialog), "alt_quick_search");
gnome_cmd_data.left_mouse_button_mode = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (lmb_singleclick_radio)) ? GnomeCmdData::LEFT_BUTTON_OPENS_WITH_SINGLE_CLICK : GnomeCmdData::LEFT_BUTTON_OPENS_WITH_DOUBLE_CLICK;
@@ -182,7 +170,6 @@ inline void store_general_options (GnomeCmdOptionsDialog *dialog)
gnome_cmd_data.filter_type = Filter::TYPE_FNMATCH;
gnome_cmd_data.case_sens_sort = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (case_sens_check));
- gnome_cmd_data.dir_cache_size = gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (dir_cache_size));
gnome_cmd_data.alt_quick_search = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (alt_quick_search));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]