mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Remove not needed if blocks
This commit is contained in:
parent
f71de61b9d
commit
d5212d8593
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user