diff --git a/src/Mod/Draft/draftfunctions/svgtext.py b/src/Mod/Draft/draftfunctions/svgtext.py index 9ebc479c1e..2213c00c5a 100644 --- a/src/Mod/Draft/draftfunctions/svgtext.py +++ b/src/Mod/Draft/draftfunctions/svgtext.py @@ -53,20 +53,6 @@ def _get_text_techdraw(text, tcolor, fontsize, anchor, _t = _t.replace("<", "<") t = _t.replace(">", ">") - # TODO: remove when Python 2 is no longer supported - if six.PY2 and not isinstance(t, six.text_type): - t = t.decode("utf8") - - # possible workaround if UTF8 is unsupported - # import unicodedata as U - # v = list() - # for c in U.normalize("NFKD", t): - # if not U.combining(c): - # v.append(c) - # - # t = u"".join(v) - # t = t.encode("utf8") - svg += '