mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
(input_is_empty): remove checks. WInput object must exist.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
318315399b
commit
4e245291b4
@ -1169,12 +1169,6 @@ input_get_text (const WInput * in)
|
||||
gboolean
|
||||
input_is_empty (const WInput * in)
|
||||
{
|
||||
if (in == NULL)
|
||||
return TRUE;
|
||||
|
||||
/* if in != NULL, in->buffer must be created */
|
||||
g_assert (in->buffer != NULL);
|
||||
|
||||
return in->buffer->len == 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user