[gnote] Cleanup sync schema and constants



commit 95b8edded771d678d5fc2e6d38b89b8cd30958fd
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Dec 13 13:56:35 2020 +0200

    Cleanup sync schema and constants

 src/preferences.cpp | 5 ++---
 src/preferences.hpp | 7 -------
 2 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/src/preferences.cpp b/src/preferences.cpp
index 13dae260..b531cd01 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -32,7 +32,9 @@ const Glib::ustring DESKTOP_GNOME_FONT = "document-font-name";
 
 const Glib::ustring SYNC_CLIENT_ID = "sync-guid";
 const Glib::ustring SYNC_LOCAL_PATH = "sync-local-path";
+const Glib::ustring SYNC_SELECTED_SERVICE_ADDIN = "sync-selected-service-addin";
 const Glib::ustring SYNC_CONFIGURED_CONFLICT_BEHAVIOR = "sync-conflict-behavior";
+const Glib::ustring SYNC_AUTOSYNC_TIMEOUT = "autosync-timeout";
 
 }
 
@@ -57,9 +59,6 @@ namespace gnote {
   const char * Preferences::MENU_NOTE_COUNT = "menu-note-count";
   const char * Preferences::MENU_PINNED_NOTES = "menu-pinned-notes";
 
-  const Glib::ustring Preferences::SYNC_SELECTED_SERVICE_ADDIN = "sync-selected-service-addin";
-  const Glib::ustring Preferences::SYNC_AUTOSYNC_TIMEOUT = "autosync-timeout";
-
   const char * Preferences::NOTE_RENAME_BEHAVIOR = "note-rename-behavior";
   const char * Preferences::USE_STATUS_ICON = "use-status-icon";
   const char * Preferences::OPEN_NOTES_IN_NEW_WINDOW = "open-notes-in-new-window";
diff --git a/src/preferences.hpp b/src/preferences.hpp
index c98ab28d..354e96ba 100644
--- a/src/preferences.hpp
+++ b/src/preferences.hpp
@@ -62,9 +62,6 @@ namespace gnote {
     static const char *SEARCH_SORTING;
     static const char *USE_CLIENT_SIDE_DECORATIONS;
 
-    static const Glib::ustring SYNC_SELECTED_SERVICE_ADDIN;
-    static const Glib::ustring SYNC_AUTOSYNC_TIMEOUT;
-
     static const char *SYNC_GVFS_URI;
 
     static const char *SYNC_FUSE_MOUNT_TIMEOUT;
@@ -76,10 +73,6 @@ namespace gnote {
     void init();
 
     Glib::RefPtr<Gio::Settings> get_schema_settings(const Glib::ustring & schema);
-    const Glib::RefPtr<Gio::Settings> & schema_sync() const
-      {
-        return m_schema_sync;
-      }
 
     const Glib::ustring & desktop_gnome_clock_format() const
       {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]