Evas textblock: Remove unused alloca.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 8 May 2011 15:33:20 +0000 (15:33 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 8 May 2011 15:33:20 +0000 (15:33 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@59280 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 23b3f16..bf94375 100644 (file)
@@ -2965,9 +2965,6 @@ _layout_do_format(const Evas_Object *obj __UNUSED__, Ctxt *c,
           }
         while ((item = _format_parse(&s)))
           {
-             char *tmp = alloca(s - item + 1);
-             strncpy(tmp, item, s - item);
-             tmp[s - item] = '\0';
              if (_format_is_param(item))
                {
                   _layout_format_value_handle(c, fmt, item);