[gnome-commander/GSettings] Removes unnecessary method 'GnomeCmdData::load_search_defaults'
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/GSettings] Removes unnecessary method 'GnomeCmdData::load_search_defaults'
- Date: Fri, 5 Aug 2016 20:35:14 +0000 (UTC)
commit 99fec0161f0e4789a57d603123ba67abe6dbbcda
Author: Uwe Scholz <uwescholz src gnome org>
Date: Fri Aug 5 22:32:59 2016 +0200
Removes unnecessary method 'GnomeCmdData::load_search_defaults'
The default search options are stored in xml config file and are loaded
from there already, too.
src/gnome-cmd-data.cc | 12 ------------
src/gnome-cmd-data.h | 1 -
2 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 28f82f4..de60c30 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -2486,17 +2486,6 @@ inline void GnomeCmdData::load_cmdline_history()
}
-inline void GnomeCmdData::load_search_defaults()
-{
- search_defaults.name_patterns = load_string_history ("/search-history/name_pattern%d", -1);
- search_defaults.content_patterns = load_string_history ("/search-history/content_pattern%d", -1);
- search_defaults.width = gnome_cmd_data_get_int ("/search-history/width", 640);
- search_defaults.height = gnome_cmd_data_get_int ("/search-history/height", 400);
- search_defaults.default_profile.max_depth = gnome_cmd_data_get_bool ("/search-history/recursive", TRUE)
? -1 : 0;
- search_defaults.default_profile.match_case = gnome_cmd_data_get_bool ("/search-history/case_sens",
FALSE);
-}
-
-
inline void GnomeCmdData::load_intviewer_defaults()
{
intviewer_defaults.text_patterns = get_list_from_gsettings_string_array
(options.gcmd_settings->internalviewer, GCMD_SETTINGS_IV_SEARCH_PATTERN_TEXT);
@@ -3701,7 +3690,6 @@ void GnomeCmdData::load()
}
#endif
- load_search_defaults();
}
if (!XML_cfg_has_connections)
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index e51d30c..88bb897 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -566,7 +566,6 @@ struct GnomeCmdData
void load_auto_load_plugins();
void load_cmdline_history();
void load_rename_history();
- void load_search_defaults();
void load_intviewer_defaults();
gboolean save_auto_load_plugins();
void save_cmdline_history();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]