Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-11-20 21:16:41 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-11-20 21:16:41 +0400
commit0af52adac044d4851b95dd238ba209593f106996 (patch)
tree4be247faaf74e12b6c31634b385d13fcff67c669 /source/blender/editors
parent31a1bcfcd7041c3d346ce8b4eb16786c353153c1 (diff)
Code Cleanup: remove unused members for editfont (3D text)
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/curve/editfont.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c
index dc58e84415c..6ba54145c25 100644
--- a/source/blender/editors/curve/editfont.c
+++ b/source/blender/editors/curve/editfont.c
@@ -1442,18 +1442,14 @@ void make_editText(Object *obedit)
ef->textbufinfo = MEM_callocN((MAXTEXT + 4) * sizeof(CharInfo), "texteditbufinfo");
ef->copybuf = MEM_callocN((MAXTEXT + 4) * sizeof(wchar_t), "texteditcopybuf");
ef->copybufinfo = MEM_callocN((MAXTEXT + 4) * sizeof(CharInfo), "texteditcopybufinfo");
- ef->oldstr = MEM_callocN((MAXTEXT + 4) * sizeof(wchar_t), "oldstrbuf");
- ef->oldstrinfo = MEM_callocN((MAXTEXT + 4) * sizeof(CharInfo), "oldstrbuf");
}
/* Convert the original text to wchar_t */
BLI_strncpy_wchar_from_utf8(ef->textbuf, cu->str, MAXTEXT + 4); /* length is bogus */
- wcscpy(ef->oldstr, ef->textbuf);
cu->len = wcslen(ef->textbuf);
memcpy(ef->textbufinfo, cu->strinfo, (cu->len) * sizeof(CharInfo));
- memcpy(ef->oldstrinfo, cu->strinfo, (cu->len) * sizeof(CharInfo));
if (cu->pos > cu->len) cu->pos = cu->len;
@@ -1471,11 +1467,6 @@ void load_editText(Object *obedit)
Curve *cu = obedit->data;
EditFont *ef = cu->editfont;
- MEM_freeN(ef->oldstr);
- ef->oldstr = NULL;
- MEM_freeN(ef->oldstrinfo);
- ef->oldstrinfo = NULL;
-
update_string(cu);
if (cu->strinfo)