summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-09-02 08:51:56 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-09-02 08:51:56 +0000
commitd7771445b17ae5d00dcf99349a36c8fabb03485d (patch)
tree1976f84f9fab08f8955bf99cbcc2d749429c5b8f /legacy/emotion/src/lib/emotion_smart.c
parentf67bdb7c374dbc7c47b0ed9a5d0539bb15c9fdc7 (diff)
emotion: remove useless code.
SVN revision: 63087
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c35
1 files changed, 5 insertions, 30 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index 33ed128aea..1ad48fd73d 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -62,9 +62,6 @@ struct _Smart_Data
62 62
63#ifdef HAVE_EIO 63#ifdef HAVE_EIO
64 Eio_File *load_xattr; 64 Eio_File *load_xattr;
65 Eio_File *save_xattr;
66
67 const char *time_seek;
68#endif 65#endif
69 66
70 struct { 67 struct {
@@ -1122,30 +1119,13 @@ emotion_object_last_position_load(Evas_Object *obj)
1122 1119
1123#ifdef HAVE_EIO 1120#ifdef HAVE_EIO
1124static void 1121static void
1125_eio_save_xattr_cleanup(Smart_Data *sd) 1122_eio_save_xattr_done(void *data __UNUSED__, Eio_File *handler __UNUSED__)
1126{ 1123{
1127 sd->save_xattr = NULL;
1128 eina_stringshare_del(sd->time_seek);
1129 sd->time_seek = NULL;
1130
1131 EINA_REFCOUNT_UNREF(sd)
1132 _smart_data_free(sd);
1133} 1124}
1134 1125
1135static void 1126static void
1136_eio_save_xattr_done(void *data, Eio_File *handler __UNUSED__) 1127_eio_save_xattr_error(void *data __UNUSED__, Eio_File *handler __UNUSED__, int err __UNUSED__)
1137{ 1128{
1138 Smart_Data *sd = data;
1139
1140 _eio_save_xattr_cleanup(sd);
1141}
1142
1143static void
1144_eio_save_xattr_error(void *data, Eio_File *handler __UNUSED__, int err __UNUSED__)
1145{
1146 Smart_Data *sd = data;
1147
1148 _eio_save_xattr_cleanup(sd);
1149} 1129}
1150#endif 1130#endif
1151 1131
@@ -1169,14 +1149,9 @@ emotion_object_last_position_save(Evas_Object *obj)
1169 eina_convert_dtoa(emotion_object_position_get(obj), double_to_string); 1149 eina_convert_dtoa(emotion_object_position_get(obj), double_to_string);
1170 1150
1171#ifdef HAVE_EIO 1151#ifdef HAVE_EIO
1172 if (sd->save_xattr) return ; 1152 eio_file_xattr_set(tmp, "user.e.time_seek",
1173 1153 double_to_string, strlen(double_to_string) + 1, 0,
1174 EINA_REFCOUNT_REF(sd); 1154 _eio_save_xattr_done, _eio_save_xattr_error, sd);
1175
1176 sd->time_seek = eina_stringshare_add(double_to_string);
1177 sd->save_xattr = eio_file_xattr_set(tmp, "user.e.time_seek",
1178 sd->time_seek, eina_stringshare_strlen(sd->time_seek) + 1, 0,
1179 _eio_save_xattr_done, _eio_save_xattr_error, sd);
1180#else 1155#else
1181# ifdef HAVE_XATTR 1156# ifdef HAVE_XATTR
1182 setxattr(tmp, "user.e.time_seek", double_to_string, strlen(double_to_string), 0); 1157 setxattr(tmp, "user.e.time_seek", double_to_string, strlen(double_to_string), 0);