evas_textblock: remove logically dead code

Since `c->fmt` is allocated and dereferenced in `_layoutformat_push`, if
`c->fmt` is NULL, this causes a crash before checking for NULL.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D12076
This commit is contained in:
Yeongjong Lee 2020-07-31 06:44:44 +00:00 committed by Marcel Hollerbach
parent 8d034f08e8
commit 42d525e15b
1 changed files with 0 additions and 4 deletions

View File

@ -7668,10 +7668,6 @@ _layout_setup(Ctxt *c, const Eo *eo_obj, Evas_Coord w, Evas_Coord h)
{
c->fmt = _layout_format_push(c, o->main_fmt, NULL);
}
if (!c->fmt)
{
return EINA_FALSE;
}
c->paragraphs = o->paragraphs;