[gnome-software] trivial: Remove some unused methods



commit d615f6beeef654d3d3bbcef9cbcaad1d7d200de4
Author: Richard Hughes <richard hughsie com>
Date:   Wed Sep 3 13:35:05 2014 +0100

    trivial: Remove some unused methods

 src/gs-category.c         |    8 --------
 src/gs-category.h         |    2 --
 src/gs-screenshot-image.c |   12 ------------
 src/gs-screenshot-image.h |    1 -
 src/gs-shell-updates.c    |    2 +-
 src/gs-shell-updates.h    |    1 -
 6 files changed, 1 insertions(+), 25 deletions(-)
---
diff --git a/src/gs-category.c b/src/gs-category.c
index 70ba1a3..9c00a42 100644
--- a/src/gs-category.c
+++ b/src/gs-category.c
@@ -80,14 +80,6 @@ gs_category_get_name (GsCategory *category)
        return category->priv->name;
 }
 
-void
-gs_category_set_name (GsCategory *category, const gchar *name)
-{
-       g_return_if_fail (GS_IS_CATEGORY (category));
-       g_free (category->priv->name);
-       category->priv->name = g_strdup (name);
-}
-
 GsCategory *
 gs_category_find_child (GsCategory *category, const gchar *id)
 {
diff --git a/src/gs-category.h b/src/gs-category.h
index acfda4b..ae3b06e 100644
--- a/src/gs-category.h
+++ b/src/gs-category.h
@@ -57,8 +57,6 @@ GsCategory      *gs_category_get_parent               (GsCategory     *category);
 GsCategory     *gs_category_find_child         (GsCategory     *category,
                                                 const gchar    *id);
 const gchar    *gs_category_get_name           (GsCategory     *category);
-void            gs_category_set_name           (GsCategory     *category,
-                                                const gchar    *name);
 void            gs_category_sort_subcategories (GsCategory     *category);
 GList          *gs_category_get_subcategories  (GsCategory     *category);
 void            gs_category_add_subcategory    (GsCategory     *category,
diff --git a/src/gs-screenshot-image.c b/src/gs-screenshot-image.c
index 06629fd..eecec66 100644
--- a/src/gs-screenshot-image.c
+++ b/src/gs-screenshot-image.c
@@ -62,18 +62,6 @@ gs_screenshot_image_get_screenshot (GsScreenshotImage *ssimg)
 }
 
 /**
- * gs_screenshot_image_get_cachedir:
- **/
-const gchar *
-gs_screenshot_image_get_cachedir (GsScreenshotImage *ssimg)
-{
-       GsScreenshotImagePrivate *priv;
-       g_return_val_if_fail (GS_IS_SCREENSHOT_IMAGE (ssimg), NULL);
-       priv = gs_screenshot_image_get_instance_private (ssimg);
-       return priv->cachedir;
-}
-
-/**
  * gs_screenshot_image_set_error:
  **/
 static void
diff --git a/src/gs-screenshot-image.h b/src/gs-screenshot-image.h
index b41175f..820d038 100644
--- a/src/gs-screenshot-image.h
+++ b/src/gs-screenshot-image.h
@@ -57,7 +57,6 @@ GtkWidget     *gs_screenshot_image_new                (SoupSession            *session);
 AsScreenshot   *gs_screenshot_image_get_screenshot     (GsScreenshotImage      *ssimg);
 void            gs_screenshot_image_set_screenshot     (GsScreenshotImage      *ssimg,
                                                         AsScreenshot           *screenshot);
-const gchar    *gs_screenshot_image_get_cachedir       (GsScreenshotImage      *ssimg);
 void            gs_screenshot_image_set_cachedir       (GsScreenshotImage      *ssimg,
                                                         const gchar            *cachedir);
 void            gs_screenshot_image_set_size           (GsScreenshotImage      *ssimg,
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index 1560bd7..ed3fdfb 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -92,7 +92,7 @@ G_DEFINE_TYPE_WITH_PRIVATE (GsShellUpdates, gs_shell_updates, GTK_TYPE_BIN)
 /**
  * gs_shell_updates_invalidate:
  **/
-void
+static void
 gs_shell_updates_invalidate (GsShellUpdates *shell_updates)
 {
        shell_updates->priv->cache_valid = FALSE;
diff --git a/src/gs-shell-updates.h b/src/gs-shell-updates.h
index 14afb32..6c18247 100644
--- a/src/gs-shell-updates.h
+++ b/src/gs-shell-updates.h
@@ -53,7 +53,6 @@ typedef struct
 GType           gs_shell_updates_get_type      (void);
 
 GsShellUpdates *gs_shell_updates_new           (void);
-void            gs_shell_updates_invalidate    (GsShellUpdates         *shell_updates);
 void            gs_shell_updates_switch_to     (GsShellUpdates         *shell_updates,
                                                 gboolean                scroll_up);
 void            gs_shell_updates_reload        (GsShellUpdates         *shell_updates);


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