diff options
author | monsta <[email protected]> | 2017-12-24 15:55:43 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2017-12-24 15:55:43 +0300 |
commit | f0e8a4529f08c43a6d7d6fb7501ac7d83342ae2e (patch) | |
tree | aeb3c028ef03b901aaeace1707f4e2d2d5debecb /libslab/libslab-utils.c | |
parent | d68834a740cb3ac396dea12f1d4cb73d309a240e (diff) | |
download | mate-control-center-f0e8a4529f08c43a6d7d6fb7501ac7d83342ae2e.tar.bz2 mate-control-center-f0e8a4529f08c43a6d7d6fb7501ac7d83342ae2e.tar.xz |
libslab: drop useless checkpoint function
Diffstat (limited to 'libslab/libslab-utils.c')
-rw-r--r-- | libslab/libslab-utils.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/libslab/libslab-utils.c b/libslab/libslab-utils.c index 5cb74b3f..fc380719 100644 --- a/libslab/libslab-utils.c +++ b/libslab/libslab-utils.c @@ -13,8 +13,6 @@ #include <sys/time.h> #include <gtk/gtk.h> -static FILE *checkpoint_file; - MateDesktopItem * libslab_mate_desktop_item_new_from_unknown_id (const gchar *id) { @@ -145,38 +143,3 @@ libslab_handle_g_error (GError **error, const gchar *msg_format, ...) g_free (msg); } - -void -libslab_checkpoint (const char *format, ...) -{ - va_list args; - struct timeval tv; - struct tm tm; - struct rusage rusage; - - if (!checkpoint_file) - return; - - gettimeofday (&tv, NULL); - tm = *localtime (&tv.tv_sec); - - getrusage (RUSAGE_SELF, &rusage); - - fprintf (checkpoint_file, - "%02d:%02d:%02d.%04d (user:%d.%04d, sys:%d.%04d) - ", - (int) tm.tm_hour, - (int) tm.tm_min, - (int) tm.tm_sec, - (int) (tv.tv_usec / 100), - (int) rusage.ru_utime.tv_sec, - (int) (rusage.ru_utime.tv_usec / 100), - (int) rusage.ru_stime.tv_sec, - (int) (rusage.ru_stime.tv_usec / 100)); - - va_start (args, format); - vfprintf (checkpoint_file, format, args); - va_end (args); - - fputs ("\n", checkpoint_file); - fflush (checkpoint_file); -} |