mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-01 05:26:21 +00:00
Remove not needed if blocks
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
* window_list.c
|
* window_list.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com>
|
* Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com>
|
||||||
|
* Copyright (C) 2019 Michael Vetter <jubalh@iodoru.org>
|
||||||
*
|
*
|
||||||
* This file is part of Profanity.
|
* This file is part of Profanity.
|
||||||
*
|
*
|
||||||
@@ -368,20 +369,12 @@ wins_get_by_string(const char *str)
|
|||||||
{
|
{
|
||||||
if (g_strcmp0(str, "console") == 0) {
|
if (g_strcmp0(str, "console") == 0) {
|
||||||
ProfWin *conswin = wins_get_console();
|
ProfWin *conswin = wins_get_console();
|
||||||
if (conswin) {
|
return conswin;
|
||||||
return conswin;
|
|
||||||
} else {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_strcmp0(str, "xmlconsole") == 0) {
|
if (g_strcmp0(str, "xmlconsole") == 0) {
|
||||||
ProfXMLWin *xmlwin = wins_get_xmlconsole();
|
ProfXMLWin *xmlwin = wins_get_xmlconsole();
|
||||||
if (xmlwin) {
|
|
||||||
return (ProfWin*)xmlwin;
|
return (ProfWin*)xmlwin;
|
||||||
} else {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ProfChatWin *chatwin = wins_get_chat(str);
|
ProfChatWin *chatwin = wins_get_chat(str);
|
||||||
|
|||||||
Reference in New Issue
Block a user