No need to double check the window type

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel
2023-08-29 13:44:54 +02:00
parent 5657aac33d
commit 1bb1f57128

View File

@@ -354,7 +354,6 @@ win_get_title(ProfWin* window)
} }
case WIN_CONFIG: case WIN_CONFIG:
{ {
if (window->type == WIN_CONFIG) {
ProfConfWin* confwin = (ProfConfWin*)window; ProfConfWin* confwin = (ProfConfWin*)window;
assert(confwin->memcheck == PROFCONFWIN_MEMCHECK); assert(confwin->memcheck == PROFCONFWIN_MEMCHECK);
GString* title = g_string_new(confwin->roomjid); GString* title = g_string_new(confwin->roomjid);
@@ -364,7 +363,6 @@ win_get_title(ProfWin* window)
} }
return g_string_free(title, FALSE); return g_string_free(title, FALSE);
} }
}
case WIN_PRIVATE: case WIN_PRIVATE:
{ {
ProfPrivateWin* privatewin = (ProfPrivateWin*)window; ProfPrivateWin* privatewin = (ProfPrivateWin*)window;