mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
mcviewer: remove useless assertions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
e13ac553d3
commit
c652ab9ccc
@ -104,8 +104,6 @@ mcview_get_filesize (WView * view)
|
||||
{
|
||||
switch (view->datasource)
|
||||
{
|
||||
case DS_NONE:
|
||||
return 0;
|
||||
case DS_STDIO_PIPE:
|
||||
case DS_VFS_PIPE:
|
||||
return mcview_growbuf_filesize (view);
|
||||
@ -114,7 +112,6 @@ mcview_get_filesize (WView * view)
|
||||
case DS_STRING:
|
||||
return view->ds_string_len;
|
||||
default:
|
||||
g_assert (!"Unknown datasource type");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@ -357,9 +354,8 @@ mcview_close_datasource (WView * view)
|
||||
break;
|
||||
case DS_STRING:
|
||||
MC_PTR_FREE (view->ds_string_data);
|
||||
break;
|
||||
default:
|
||||
g_assert (!"Unknown datasource type");
|
||||
break;
|
||||
}
|
||||
view->datasource = DS_NONE;
|
||||
}
|
||||
|
@ -107,7 +107,6 @@ mcview_get_byte (WView * view, off_t offset, int *retval)
|
||||
case DS_NONE:
|
||||
return mcview_get_byte_none (view, offset, retval);
|
||||
default:
|
||||
g_assert (!"Unknown datasource type");
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user