[gthumb] comments: removed useless variable
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] comments: removed useless variable
- Date: Mon, 9 Apr 2012 19:59:59 +0000 (UTC)
commit 774e291295541f06a1860d0c95f75f4aeb920f2c
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Apr 9 20:47:51 2012 +0200
comments: removed useless variable
'matcher' is not used anywhere
.../comments/gth-metadata-provider-comment.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/extensions/comments/gth-metadata-provider-comment.c b/extensions/comments/gth-metadata-provider-comment.c
index e14b5fa..3548ae1 100644
--- a/extensions/comments/gth-metadata-provider-comment.c
+++ b/extensions/comments/gth-metadata-provider-comment.c
@@ -67,18 +67,15 @@ gth_metadata_provider_comment_read (GthMetadataProvider *self,
const char *attributes,
GCancellable *cancellable)
{
- GthComment *comment;
- GFileAttributeMatcher *matcher;
- const char *value;
- GPtrArray *categories;
- char *comment_time;
+ GthComment *comment;
+ const char *value;
+ GPtrArray *categories;
+ char *comment_time;
comment = gth_comment_new_for_file (file_data->file, cancellable, NULL);
if (comment == NULL)
return;
- matcher = g_file_attribute_matcher_new (attributes);
-
value = gth_comment_get_note (comment);
if (value != NULL)
g_file_info_set_attribute_string (file_data->info, "comment::note", value);
@@ -127,7 +124,6 @@ gth_metadata_provider_comment_read (GthMetadataProvider *self,
gth_comment_update_general_attributes (file_data);
- g_file_attribute_matcher_unref (matcher);
g_object_unref (comment);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]