[gnome-software] trivial: Remove some dead #ifdefs
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Remove some dead #ifdefs
- Date: Wed, 18 May 2016 10:46:02 +0000 (UTC)
commit 3b8a52b9246e46315c4d27896ef833d3ba027e95
Author: Richard Hughes <richard hughsie com>
Date: Wed May 11 11:23:17 2016 +0100
trivial: Remove some dead #ifdefs
src/gs-app.h | 14 --------------
src/gs-common.c | 2 --
src/gs-common.h | 2 --
3 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/src/gs-app.h b/src/gs-app.h
index 4f9ec62..dc679fb 100644
--- a/src/gs-app.h
+++ b/src/gs-app.h
@@ -95,20 +95,6 @@ typedef enum {
GS_APP_QUALITY_LAST
} GsAppQuality;
-#if !AS_CHECK_VERSION(0,5,12)
-#define AS_APP_QUIRK_MATCH_ANY_PREFIX (1 << 3)
-#endif
-
-#if !AS_CHECK_VERSION(0,5,14)
-#define AS_APP_QUIRK_NEEDS_REBOOT (1 << 4)
-#define AS_APP_QUIRK_NOT_REVIEWABLE (1 << 5)
-#endif
-
-#if !AS_CHECK_VERSION(0,5,15)
-#define AS_APP_QUIRK_HAS_SHORTCUT (1 << 6)
-#define AS_APP_QUIRK_NOT_LAUNCHABLE (1 << 7)
-#endif
-
GsApp *gs_app_new (const gchar *id);
gchar *gs_app_to_string (GsApp *app);
diff --git a/src/gs-common.c b/src/gs-common.c
index 8253fba..f3281bf 100644
--- a/src/gs-common.c
+++ b/src/gs-common.c
@@ -423,7 +423,6 @@ gs_image_set_from_pixbuf (GtkImage *image, const GdkPixbuf *pixbuf)
gs_image_set_from_pixbuf_with_scale (image, pixbuf, scale);
}
-#if AS_CHECK_VERSION(0,5,12)
/**
* gs_utils_get_content_rating:
*
@@ -642,7 +641,6 @@ gs_utils_get_content_rating (void)
{ NULL, 0, NULL } };
return content_rating_oars[0].desc;
}
-#endif
/**
* gs_utils_is_current_desktop:
diff --git a/src/gs-common.h b/src/gs-common.h
index 6e7ea92..3d7193c 100644
--- a/src/gs-common.h
+++ b/src/gs-common.h
@@ -52,9 +52,7 @@ void gs_image_set_from_pixbuf_with_scale (GtkImage *image,
void gs_image_set_from_pixbuf (GtkImage *image,
const GdkPixbuf *pixbuf);
-#if AS_CHECK_VERSION(0,5,12)
const gchar *gs_utils_get_content_rating (void);
-#endif
const gchar *gs_user_agent (void);
gboolean gs_utils_is_current_desktop (const gchar *name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]