about summary refs log tree commit diff stats
path: root/src/chatlog.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-06-29 09:44:57 +0200
committerMichael Vetter <jubalh@iodoru.org>2022-06-29 09:44:57 +0200
commit30faa6c3678a19d182bbc1e62cc9667ea2040892 (patch)
treeb62e26e37c5473dea9eb40fb5486203504774b82 /src/chatlog.c
parentdfc51f7ba4bf8918eec7d3404246f80004c6aedc (diff)
downloadprofani-tty-30faa6c3678a19d182bbc1e62cc9667ea2040892.tar.gz
chatlog: remove unused variable
Diffstat (limited to 'src/chatlog.c')
-rw-r--r--src/chatlog.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/chatlog.c b/src/chatlog.c
index da5c7e2b..482e8f38 100644
--- a/src/chatlog.c
+++ b/src/chatlog.c
@@ -57,7 +57,6 @@
 
 static GHashTable* logs;
 static GHashTable* groupchat_logs;
-static GDateTime* session_started;
 
 struct dated_chat_log
 {
@@ -77,7 +76,6 @@ static void _groupchat_log_chat(const gchar* const login, const gchar* const roo
 void
 chat_log_init(void)
 {
-    session_started = g_date_time_new_now_local();
     log_info("Initialising chat logs");
     logs = g_hash_table_new_full(g_str_hash, (GEqualFunc)_key_equals, free,
                                  (GDestroyNotify)_free_chat_log);
@@ -422,7 +420,6 @@ chat_log_close(void)
 {
     g_hash_table_destroy(logs);
     g_hash_table_destroy(groupchat_logs);
-    g_date_time_unref(session_started);
 }
 
 static char*