[grilo] core: Get rid of original width/height
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] core: Get rid of original width/height
- Date: Fri, 25 Mar 2011 15:58:34 +0000 (UTC)
commit 2414a05718730e7ad913a1fa2e0ffed81c50b4dd
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Fri Mar 25 14:07:43 2011 +0000
core: Get rid of original width/height
Not used at all.
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
src/data/grl-media-image.c | 61 --------------------------------------------
src/data/grl-media-image.h | 10 -------
src/grl-metadata-key.c | 22 ----------------
src/grl-metadata-key.h | 2 -
4 files changed, 0 insertions(+), 95 deletions(-)
---
diff --git a/src/data/grl-media-image.c b/src/data/grl-media-image.c
index f1fe04b..d284662 100644
--- a/src/data/grl-media-image.c
+++ b/src/data/grl-media-image.c
@@ -411,67 +411,6 @@ grl_media_image_set_iso_speed (GrlMediaImage *image,
iso_speed);
}
-
-/**
- * grl_media_image_get_original_width:
- * @image: the image instance
- *
- * Returns: original width of picture
- */
-gint
-grl_media_image_get_original_width (GrlMediaImage *image)
-{
- return grl_data_get_int (GRL_DATA (image),
- GRL_METADATA_KEY_ORIGINAL_WIDTH);
-}
-
-/**
- * grl_media_set_original_width:
- * @image: the image instance
- * @original_width: original width of picture
- *
- * Set the original_width of the image
- */
-void
-grl_media_image_set_original_width (GrlMediaImage *image,
- gint original_width)
-{
- grl_data_set_int (GRL_DATA (image),
- GRL_METADATA_KEY_ORIGINAL_WIDTH,
- original_width);
-}
-
-
-/**
- * grl_media_image_get_original_height:
- * @image: the image instance
- *
- * Returns: original height of picture
- */
-gint
-grl_media_image_get_original_height (GrlMediaImage *image)
-{
- return grl_data_get_int (GRL_DATA (image),
- GRL_METADATA_KEY_ORIGINAL_HEIGHT);
-}
-
-/**
- * grl_media_set_original_height:
- * @image: the image instance
- * @original_height: original height of picture
- *
- * Set the original height of the image
- */
-void
-grl_media_image_set_original_height (GrlMediaImage *image,
- gint original_height)
-{
- grl_data_set_int (GRL_DATA (image),
- GRL_METADATA_KEY_ORIGINAL_HEIGHT,
- original_height);
-}
-
-
/**
* grl_media_image_get_orientation:
* @image: the image instance
diff --git a/src/data/grl-media-image.h b/src/data/grl-media-image.h
index 6d78b20..e7f46be 100644
--- a/src/data/grl-media-image.h
+++ b/src/data/grl-media-image.h
@@ -101,10 +101,6 @@ gfloat grl_media_image_get_exposure_time (GrlMediaImage *image);
gfloat grl_media_image_get_iso_speed (GrlMediaImage *image);
-gint grl_media_image_get_original_height (GrlMediaImage *image);
-
-gint grl_media_image_get_original_width (GrlMediaImage *image);
-
gint grl_media_image_get_orientation (GrlMediaImage *image);
@@ -147,12 +143,6 @@ void grl_media_image_set_exposure_time (GrlMediaImage *image,
void grl_media_image_set_iso_speed (GrlMediaImage *image,
gfloat iso_speed);
-void grl_media_image_set_original_width (GrlMediaImage *image,
- gint original_width);
-
-void grl_media_image_set_original_height (GrlMediaImage *image,
- gint original_height);
-
void grl_media_image_set_orientation (GrlMediaImage *image,
gint orientation);
diff --git a/src/grl-metadata-key.c b/src/grl-metadata-key.c
index b3fbce0..848186d 100644
--- a/src/grl-metadata-key.c
+++ b/src/grl-metadata-key.c
@@ -72,8 +72,6 @@ GrlKeyID GRL_METADATA_KEY_ORIENTATION = NULL;
GrlKeyID GRL_METADATA_KEY_FLASH_USED = NULL;
GrlKeyID GRL_METADATA_KEY_EXPOSURE_TIME = NULL;
GrlKeyID GRL_METADATA_KEY_ISO_SPEED = NULL;
-GrlKeyID GRL_METADATA_KEY_ORIGINAL_WIDTH = NULL;
-GrlKeyID GRL_METADATA_KEY_ORIGINAL_HEIGHT = NULL;
void
grl_metadata_key_setup_system_keys (GrlPluginRegistry *registry)
@@ -423,26 +421,6 @@ GRL_METADATA_KEY_STUDIO =
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE),
NULL);
- GRL_METADATA_KEY_ORIGINAL_WIDTH =
- grl_plugin_registry_register_metadata_key (registry,
- g_param_spec_int ("original-width",
- "Original width",
- "Original width of the photo",
- 0, G_MAXINT,
- 0,
- G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE),
- NULL);
-
- GRL_METADATA_KEY_ORIGINAL_HEIGHT =
- grl_plugin_registry_register_metadata_key (registry,
- g_param_spec_int ("original-height",
- "Original height",
- "Original height of the photo",
- 0, G_MAXINT,
- 0,
- G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE),
- NULL);
-
/* Create the relations */
grl_plugin_registry_register_metadata_key_relation (registry,
GRL_METADATA_KEY_URL,
diff --git a/src/grl-metadata-key.h b/src/grl-metadata-key.h
index 84c5f4f..35474a7 100644
--- a/src/grl-metadata-key.h
+++ b/src/grl-metadata-key.h
@@ -82,8 +82,6 @@ extern GrlKeyID GRL_METADATA_KEY_ORIENTATION;
extern GrlKeyID GRL_METADATA_KEY_FLASH_USED;
extern GrlKeyID GRL_METADATA_KEY_EXPOSURE_TIME;
extern GrlKeyID GRL_METADATA_KEY_ISO_SPEED;
-extern GrlKeyID GRL_METADATA_KEY_ORIGINAL_WIDTH;
-extern GrlKeyID GRL_METADATA_KEY_ORIGINAL_HEIGHT;
const gchar *grl_metadata_key_get_name (GrlKeyID key);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]