[gnome-packagekit] trivial: Remove some unused schema
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] trivial: Remove some unused schema
- Date: Mon, 4 Nov 2013 17:17:23 +0000 (UTC)
commit 67af6047bb39bbc22e86b3c884acca8b187e3bc0
Author: Richard Hughes <richard hughsie com>
Date: Mon Nov 4 16:37:52 2013 +0000
trivial: Remove some unused schema
data/org.gnome.packagekit.gschema.migrate | 3 ---
data/org.gnome.packagekit.gschema.xml | 10 ----------
src/gpk-common.h | 12 ------------
src/gpk-enum.c | 3 +--
src/gpk-update-viewer.c | 8 --------
5 files changed, 1 insertions(+), 35 deletions(-)
---
diff --git a/data/org.gnome.packagekit.gschema.migrate b/data/org.gnome.packagekit.gschema.migrate
index cb662e3..3a4f560 100644
--- a/data/org.gnome.packagekit.gschema.migrate
+++ b/data/org.gnome.packagekit.gschema.migrate
@@ -1,8 +1,6 @@
[org.gnome.packagekit]
enable-autoremove = /apps/gnome-packagekit/enable_autoremove
show-depends = /apps/gnome-packagekit/show_depends
-show-copy-confirm = /apps/gnome-packagekit/show_copy_confirm
-watch-active-transactions = /apps/gnome-packagekit/update-icon/watch_active_transactions
autocomplete = /apps/gnome-packagekit/autocomplete
filter-basename = /apps/gnome-packagekit/application/filter_basename
filter-newest = /apps/gnome-packagekit/application/filter_newest
@@ -10,7 +8,6 @@ filter-arch = /apps/gnome-packagekit/application/filter_arch
category-groups = /apps/gnome-packagekit/application/category_groups
show-all-packages = /apps/gnome-packagekit/application/show_all_packages
repo-show-details = /apps/gnome-packagekit/repo/show_details
-notify-mobile-connection = /apps/gnome-packagekit/update-viewer/notify_mobile_connection
only-newest = /apps/gnome-packagekit/update-viewer/only_newest
scroll-active = /apps/gnome-packagekit/update-viewer/scroll_active
enable-font-helper = /apps/gnome-packagekit/enable_font_helper
diff --git a/data/org.gnome.packagekit.gschema.xml b/data/org.gnome.packagekit.gschema.xml
index 3c16505..11d4698 100644
--- a/data/org.gnome.packagekit.gschema.xml
+++ b/data/org.gnome.packagekit.gschema.xml
@@ -15,11 +15,6 @@
<summary>Ask the user if additional packages should be installed</summary>
<description>Ask the user if additional packages should be installed.</description>
</key>
- <key name="show-copy-confirm" type="b">
- <default>true</default>
- <summary>Ask the user if files should be copied to a non-private directory</summary>
- <description>Ask the user if files should be copied to a non-private directory when installing from a
FUSE mount.</description>
- </key>
<key name="autocomplete" type="b">
<default>false</default>
<summary>If search terms should be completed automatically</summary>
@@ -65,11 +60,6 @@
<summary>Show all repositories in the software source viewer</summary>
<description>Show all repositories in the software source viewer.</description>
</key>
- <key name="notify-mobile-connection" type="b">
- <default>true</default>
- <summary>Notify the user before a large update is done on a mobile broadband connection</summary>
- <description>Notify the user before a large update is done on a mobile broadband
connection.</description>
- </key>
<key name="only-newest" type="b">
<default>true</default>
<summary>Only show the newest updates in the list</summary>
diff --git a/src/gpk-common.h b/src/gpk-common.h
index 864bc43..168f9b4 100644
--- a/src/gpk-common.h
+++ b/src/gpk-common.h
@@ -45,25 +45,13 @@ G_BEGIN_DECLS
#define GPK_SETTINGS_FILTER_NEWEST "filter-newest"
#define GPK_SETTINGS_FILTER_SUPPORTED "filter-supported"
#define GPK_SETTINGS_IGNORED_DBUS_REQUESTS "ignored-dbus-requests"
-#define GPK_SETTINGS_NOTIFY_MOBILE_CONNECTION "notify-mobile-connection"
#define GPK_SETTINGS_ONLY_NEWEST "only-newest"
#define GPK_SETTINGS_REPO_SHOW_DETAILS "repo-show-details"
#define GPK_SETTINGS_SCROLL_ACTIVE "scroll-active"
#define GPK_SETTINGS_SEARCH_MODE "search-mode"
#define GPK_SETTINGS_SHOW_ALL_PACKAGES "show-all-packages"
-#define GPK_SETTINGS_SHOW_COPY_CONFIRM "show-copy-confirm"
#define GPK_SETTINGS_SHOW_DEPENDS "show-depends"
-#define GSD_SETTINGS_SCHEMA "org.gnome.settings-daemon.plugins.updates"
-#define GSD_SETTINGS_AUTO_UPDATE_TYPE "auto-update-type"
-#define GSD_SETTINGS_CONNECTION_USE_MOBILE "connection-use-mobile"
-#define GSD_SETTINGS_FREQUENCY_GET_UPDATES "frequency-get-updates"
-#define GSD_SETTINGS_FREQUENCY_GET_UPGRADES "frequency-get-upgrades"
-#define GSD_SETTINGS_FREQUENCY_REFRESH_CACHE "frequency-refresh-cache"
-#define GSD_SETTINGS_UPDATE_BATTERY "update-battery"
-
-#define GPK_BUGZILLA_URL "https://bugs.freedesktop.org/"
-
#define GPK_ICON_SOFTWARE_UPDATE "system-software-update"
#define GPK_ICON_SOFTWARE_SOURCES "gpk-repo"
#define GPK_ICON_SOFTWARE_INSTALLER "system-software-install"
diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index ae83a34..f60de4a 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -756,8 +756,7 @@ gpk_error_enum_to_localised_message (PkErrorEnum code)
text = _("A package manager lock is required.");
break;
default:
- g_warning ("Unknown error, please report a bug at " GPK_BUGZILLA_URL ".\n"
- "More information is available in the detailed report.");
+ break;
}
return text;
}
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index 534b993..841ee7d 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -1262,7 +1262,6 @@ gpk_update_viewer_button_upgrade_cb (GtkWidget *widget, gpointer user_data)
static void
gpk_update_viewer_check_mobile_broadband (void)
{
- gboolean ret = TRUE;
PkNetworkEnum state;
const gchar *message;
@@ -1282,13 +1281,6 @@ gpk_update_viewer_check_mobile_broadband (void)
if (size_total < GPK_UPDATE_VIEWER_MOBILE_SMALL_SIZE)
goto out;
- /* not when ignored */
- ret = g_settings_get_boolean (settings, GPK_SETTINGS_NOTIFY_MOBILE_CONNECTION);
- if (!ret)
- goto out;
-
- /* show a warning message */
-
/* TRANSLATORS, are we going to cost the user lots of money? */
message = ngettext ("Connectivity is being provided by wireless broadband, and it may be expensive to
update this package.",
"Connectivity is being provided by wireless broadband, and it may be expensive to
update these packages.",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]