about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-12-20 18:48:35 +0000
committerJames Booth <boothj5@gmail.com>2014-12-20 18:48:35 +0000
commit39aae7f5480a2ade61d36615d6cdb72882772054 (patch)
treefa34ebf0e5f67c4a3fed51ac67b6a1ff97d1082e /src/ui
parent6800bf1cad19d3ec99a3c8333be5fae81a24954d (diff)
downloadprofani-tty-39aae7f5480a2ade61d36615d6cdb72882772054.tar.gz
Removed TODOs
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c5
-rw-r--r--src/ui/ui.h2
-rw-r--r--src/ui/windows.c20
-rw-r--r--src/ui/windows.h3
4 files changed, 0 insertions, 30 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 98fda0c4..33a84044 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -936,7 +936,6 @@ _ui_next_win(void)
     }
 }
 
-// TODO move OTR UI to new module
 static void
 _ui_gone_secure(const char * const barejid, gboolean trusted)
 {
@@ -1183,8 +1182,6 @@ _ui_prune_wins(void)
     GSList *curr = wins;
     while (curr != NULL) {
         ProfWin *window = curr->data;
-
-        // TODO move to ui_close_win
         if (window->type == WIN_CHAT) {
             if (conn_status == JABBER_CONNECTED) {
                 if (prefs_get_boolean(PREF_STATES)) {
@@ -1200,7 +1197,6 @@ _ui_prune_wins(void)
             }
         }
 
-        // TODO make one function
         int num = wins_get_num(window);
         ui_close_win(num);
 
@@ -1990,7 +1986,6 @@ _ui_leave_room(const char * const roomjid)
     }
 }
 
-// TODO move to muc ui module
 static void
 _ui_room_destroyed(const char * const roomjid, const char * const reason, const char * const new_jid,
     const char * const password)
diff --git a/src/ui/ui.h b/src/ui/ui.h
index 59324113..159f7f18 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -76,7 +76,6 @@ void (*ui_gone_secure)(const char * const barejid, gboolean trusted);
 void (*ui_gone_insecure)(const char * const barejid);
 void (*ui_trust)(const char * const barejid);
 void (*ui_untrust)(const char * const barejid);
-// TODO rename other recipients to barejid etc
 void (*ui_smp_recipient_initiated)(const char * const barejid);
 void (*ui_smp_recipient_initiated_q)(const char * const barejid, const char *question);
 
@@ -139,7 +138,6 @@ void (*ui_outgoing_private_msg)(const char * const from, const char * const full
 void (*ui_room_join)(const char * const roomjid, gboolean focus);
 void (*ui_switch_to_room)(const char * const roomjid);
 
-// TODO change all room -> roomjid
 void (*ui_room_role_change)(const char * const roomjid, const char * const role, const char * const actor,
     const char * const reason);
 void (*ui_room_affiliation_change)(const char * const roomjid, const char * const affiliation, const char * const actor,
diff --git a/src/ui/windows.c b/src/ui/windows.c
index e62fc240..a3a50a1d 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -345,26 +345,6 @@ wins_get_previous(void)
     }
 }
 
-// TODO REMOVE
-//ProfWin *
-//wins_get_by_recipient(const char * const recipient)
-//{
-//    GList *values = g_hash_table_get_values(windows);
-//    GList *curr = values;
-//
-//    while (curr != NULL) {
-//        ProfWin *window = curr->data;
-//        if (g_strcmp0(window->from, recipient) == 0) {
-//            g_list_free(values);
-//            return window;
-//        }
-//        curr = g_list_next(curr);
-//    }
-//
-//    g_list_free(values);
-//    return NULL;
-//}
-
 int
 wins_get_num(ProfWin *window)
 {
diff --git a/src/ui/windows.h b/src/ui/windows.h
index 2bb2561d..be2e75a0 100644
--- a/src/ui/windows.h
+++ b/src/ui/windows.h
@@ -49,9 +49,6 @@ ProfMucWin * wins_get_muc(const char * const roomjid);
 ProfMucConfWin * wins_get_muc_conf(const char * const title);
 ProfPrivateWin *wins_get_private(const char * const fulljid);
 
-// TODO remove
-//ProfWin * wins_get_by_recipient(const char * const recipient);
-
 ProfWin * wins_get_current(void);
 ProfChatWin * wins_get_current_chat(void);
 ProfMucWin * wins_get_current_muc(void);