mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 00:16:22 +00:00
Removed wins_get_current_* functions
This commit is contained in:
@@ -167,74 +167,6 @@ wins_get_current(void)
|
||||
}
|
||||
}
|
||||
|
||||
ProfChatWin *
|
||||
wins_get_current_chat(void)
|
||||
{
|
||||
if (windows) {
|
||||
ProfWin *window = g_hash_table_lookup(windows, GINT_TO_POINTER(current));
|
||||
if (window) {
|
||||
ProfChatWin *chatwin = (ProfChatWin*)window;
|
||||
assert(chatwin->memcheck == PROFCHATWIN_MEMCHECK);
|
||||
return chatwin;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
ProfMucWin *
|
||||
wins_get_current_muc(void)
|
||||
{
|
||||
if (windows) {
|
||||
ProfWin *window = g_hash_table_lookup(windows, GINT_TO_POINTER(current));
|
||||
if (window) {
|
||||
ProfMucWin *mucwin = (ProfMucWin*)window;
|
||||
assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK);
|
||||
return mucwin;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
ProfPrivateWin *
|
||||
wins_get_current_private(void)
|
||||
{
|
||||
if (windows) {
|
||||
ProfWin *window = g_hash_table_lookup(windows, GINT_TO_POINTER(current));
|
||||
if (window) {
|
||||
ProfPrivateWin *privatewin = (ProfPrivateWin*)window;
|
||||
assert(privatewin->memcheck == PROFPRIVATEWIN_MEMCHECK);
|
||||
return privatewin;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
ProfMucConfWin *
|
||||
wins_get_current_muc_conf(void)
|
||||
{
|
||||
if (windows) {
|
||||
ProfWin *window = g_hash_table_lookup(windows, GINT_TO_POINTER(current));
|
||||
if (window) {
|
||||
ProfMucConfWin *confwin = (ProfMucConfWin*)window;
|
||||
assert(confwin->memcheck == PROFCONFWIN_MEMCHECK);
|
||||
return confwin;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
GList *
|
||||
wins_get_nums(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user