summaryrefslogtreecommitdiff
path: root/stickynotes/util.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-07-17 11:52:29 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-07-24 18:51:24 +0200
commite1e531145476d424ef7a882447fd411d18a974e8 (patch)
tree100434ca70d0dde03b768eb73bd6658abfe3fd48 /stickynotes/util.c
parent7b4863d13487a770738a22afa8cf3c108bc04cf2 (diff)
downloadmate-applets-e1e531145476d424ef7a882447fd411d18a974e8.tar.bz2
mate-applets-e1e531145476d424ef7a882447fd411d18a974e8.tar.xz
stickynotes: Fix -Wformat-nonliteral warning
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)
{