Drop the custom data class decorator for now, since it is not performance relevant

This commit is contained in:
Veronica Berglyd Olsen
2025-01-12 22:23:20 +01:00
parent e7a0803ca4
commit 0728b35735
3 changed files with 1 additions and 35 deletions
-3
View File
@@ -29,8 +29,6 @@ from enum import Flag, IntEnum
from PyQt6.QtGui import QColor
from novelwriter.types import nwDataClass
ESCAPES = {r"\*": "*", r"\~": "~", r"\_": "_", r"\[": "[", r"\]": "]", r"\ ": ""}
RX_ESC = re.compile("|".join([re.escape(k) for k in ESCAPES.keys()]), flags=re.DOTALL)
@@ -42,7 +40,6 @@ def stripEscape(text: str) -> str:
return text
@nwDataClass
class TextDocumentTheme:
"""Default document theme."""