[cheese] get rid of log path functions



commit 83cd06fa286b60724fd57832db8c2a394301d603
Author: daniel g. siegel <dgsiegel gnome org>
Date:   Mon Aug 9 12:50:33 2010 +0200

    get rid of log path functions

 libcheese/cheese-fileutil.c |   17 -----------------
 libcheese/cheese-fileutil.h |    1 -
 src/vapi/cheese-common.vapi |    2 --
 3 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/libcheese/cheese-fileutil.c b/libcheese/cheese-fileutil.c
index 90acd26..c684edc 100644
--- a/libcheese/cheese-fileutil.c
+++ b/libcheese/cheese-fileutil.c
@@ -39,7 +39,6 @@ typedef struct
 {
   gchar *video_path;
   gchar *photo_path;
-  gchar *log_path;
   gint   burst_count;
   gchar *burst_raw_name;
 } CheeseFileUtilPrivate;
@@ -75,18 +74,6 @@ cheese_fileutil_get_path_before_224 (CheeseFileUtil *fileutil)
 }
 
 gchar *
-cheese_fileutil_get_log_path (CheeseFileUtil *fileutil)
-{
-  CheeseFileUtilPrivate *priv = CHEESE_FILEUTIL_GET_PRIVATE (fileutil);
-
-  gchar *path;
-
-  path = priv->log_path;
-
-  return path;
-}
-
-gchar *
 cheese_fileutil_get_new_media_filename (CheeseFileUtil *fileutil, CheeseMediaMode mode)
 {
   struct tm *ptr;
@@ -175,7 +162,6 @@ cheese_fileutil_finalize (GObject *object)
 
   g_free (priv->video_path);
   g_free (priv->photo_path);
-  g_free (priv->log_path);
   G_OBJECT_CLASS (cheese_fileutil_parent_class)->finalize (object);
 }
 
@@ -228,9 +214,6 @@ cheese_fileutil_init (CheeseFileUtil *fileutil)
     }
   }
 
-  /* FIXME: use the xdg log path */
-  priv->log_path = g_strjoin (G_DIR_SEPARATOR_S, g_get_home_dir (), ".gnome2", "cheese", NULL);
-
   g_object_unref (gconf);
 }
 
diff --git a/libcheese/cheese-fileutil.h b/libcheese/cheese-fileutil.h
index c9a1063..0f209f1 100644
--- a/libcheese/cheese-fileutil.h
+++ b/libcheese/cheese-fileutil.h
@@ -60,7 +60,6 @@ CheeseFileUtil *cheese_fileutil_new (void);
 gchar *cheese_fileutil_get_video_path (CheeseFileUtil *fileutil);
 gchar *cheese_fileutil_get_photo_path (CheeseFileUtil *fileutil);
 gchar *cheese_fileutil_get_path_before_224 (CheeseFileUtil *fileutil);
-gchar *cheese_fileutil_get_log_path (CheeseFileUtil *fileutil);
 gchar *cheese_fileutil_get_new_media_filename (CheeseFileUtil *fileutil, CheeseMediaMode mode);
 void   cheese_fileutil_reset_burst (CheeseFileUtil *fileutil);
 
diff --git a/src/vapi/cheese-common.vapi b/src/vapi/cheese-common.vapi
index af9b1ec..4e62b3d 100644
--- a/src/vapi/cheese-common.vapi
+++ b/src/vapi/cheese-common.vapi
@@ -94,8 +94,6 @@ namespace Cheese
   {
     [CCode (cname = "cheese_fileutil_new", has_construct_function = false)]
     public FileUtil ();
-    [CCode (cname = "cheese_fileutil_get_log_path")]
-    public unowned string get_log_path ();
     [CCode (cname = "cheese_fileutil_get_new_media_filename")]
     public unowned string get_new_media_filename (Cheese.MediaMode mode);
     [CCode (cname = "cheese_fileutil_get_path_before_224")]



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