[gegl] buffer: remove unused static function



commit 2792e6174c6c47189f8ef22afeb1a54e4f1e5a2e
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Tue Sep 10 09:13:22 2013 -0700

    buffer: remove unused static function

 gegl/buffer/gegl-buffer.c |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer.c b/gegl/buffer/gegl-buffer.c
index 3616a0b..47af575 100644
--- a/gegl/buffer/gegl-buffer.c
+++ b/gegl/buffer/gegl-buffer.c
@@ -107,7 +107,6 @@ enum
   LAST_SIGNAL
 };
 
-static gchar      * get_next_swap_path              (void);
 static const Babl * gegl_buffer_internal_get_format (GeglBuffer *buffer);
 
 
@@ -1162,26 +1161,6 @@ gegl_buffer_create_sub_buffer (GeglBuffer          *buffer,
                        NULL);
 }
 
-static char *
-get_next_swap_path (void)
-{
-  static gint no = 1;
-
-  gchar *filename;
-  gchar *path;
-  gchar *swap_dir = gegl_config()->swap;
-
-  if (!swap_dir)
-    g_error("Attempted to build a file buffer with no path and no swap directory");
-
-  filename = g_strdup_printf ("%i-%i", getpid(), no);
-  g_atomic_int_inc (&no);
-  path = g_build_filename (swap_dir, filename, NULL);
-  g_free (filename);
-
-  return path;
-}
-
 static const Babl *
 gegl_buffer_internal_get_format (GeglBuffer *buffer)
 {


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