summaryrefslogtreecommitdiff
path: root/stickynotes/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'stickynotes/util.c')
-rw-r--r--stickynotes/util.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/stickynotes/util.c b/stickynotes/util.c
index 929c877f..d8e370c4 100644
--- a/stickynotes/util.c
+++ b/stickynotes/util.c
@@ -20,34 +20,12 @@
#include <config.h>
#include "util.h"
-#include <time.h>
-
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
-/* Returns the current date in a customizable form, the default
- * looks like this: "Nov 30, '78" */
-gchar * get_current_date(const gchar *format)
-{
- time_t clock = time(NULL);
- struct tm *current = localtime(&clock);
-
- gint date_length = 10;
- gchar *date = g_new(gchar, date_length);
-
- do
- {
- date_length += 5;
- date = (gchar *) g_renew(gchar, date, date_length);
- }
- while(strftime(date, date_length, format, current) == 0);
-
- return date;
-}
-
static Atom
xstuff_atom_get (const char *atom_name)
{