mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Removed TODOs
This commit is contained in:
parent
6800bf1cad
commit
39aae7f548
@ -1130,11 +1130,9 @@ cmd_msg(gchar **args, struct cmd_help_t help)
|
||||
g_string_append(full_jid, usr);
|
||||
|
||||
if (msg != NULL) {
|
||||
// TODO use message send private
|
||||
message_send_private(full_jid->str, msg);
|
||||
ui_outgoing_private_msg("me", full_jid->str, msg);
|
||||
} else {
|
||||
// TODO use new private win
|
||||
ui_new_private_win(full_jid->str);
|
||||
}
|
||||
|
||||
@ -1146,7 +1144,6 @@ cmd_msg(gchar **args, struct cmd_help_t help)
|
||||
|
||||
return TRUE;
|
||||
|
||||
// TODO handle different window types (OTR only for chat etc)
|
||||
} else {
|
||||
char *usr_jid = roster_barejid_from_name(usr);
|
||||
if (usr_jid == NULL) {
|
||||
@ -2943,7 +2940,6 @@ cmd_alias(gchar **args, struct cmd_help_t help)
|
||||
}
|
||||
}
|
||||
|
||||
// TODO reuse cmd_msg
|
||||
gboolean
|
||||
cmd_tiny(gchar **args, struct cmd_help_t help)
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user