[LyX/master] layout2layout: remove unused regex.

Thibaut Cuvelier tcuvelier at lyx.org
Tue Dec 27 13:56:06 UTC 2022


commit 7f5c917c71b97c880d333c6de5ed0af555586ff6
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Tue Dec 27 03:21:29 2022 +0100

    layout2layout: remove unused regex.
---
 lib/scripts/layout2layout.py |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/lib/scripts/layout2layout.py b/lib/scripts/layout2layout.py
index 4f5cb04..a8c0ded 100644
--- a/lib/scripts/layout2layout.py
+++ b/lib/scripts/layout2layout.py
@@ -454,7 +454,6 @@ def convert(lines, end_format):
     re_CopyStyle2 = re.compile(b'(\\s*CopyStyle\\s+)"?([^"]+)"?\\s*$')
     re_Separator = re.compile(b'^(?:(-*)|(\\s*))(Separator|EndOfSlide)(?:(-*)|(\\s*))$', re.IGNORECASE)
     # for categories
-    re_Declaration = re.compile(b'^#\\s*\\Declare\\w+Class.*$')
     re_ExtractCategory = re.compile(b'^(#\\s*\\Declare\\w+Class(?:\\[[^]]*?\\])?){([^(]+?)\\s+\\(([^)]+?)\\)\\s*}\\s*$')
     ConvDict = {b"article": b"Articles", b"book": b"Books", b"letter": b"Letters", b"report": b"Reports",
                 b"presentation": b"Presentations", b"curriculum vitae": b"Curricula Vitae", b"handout": b"Handouts"}


More information about the lyx-cvs mailing list