Evas textblock: Remove unused alloca.
authorTom Hacohen <tom@stosb.com>
Sun, 8 May 2011 15:33:20 +0000 (15:33 +0000)
committerTom Hacohen <tom@stosb.com>
Sun, 8 May 2011 15:33:20 +0000 (15:33 +0000)
SVN revision: 59280

legacy/evas/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);