From 0aa4d9d25e4229d931e1a8c409a1a2a471002016 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Thu, 18 Jun 2009 23:41:55 +0000 Subject: [PATCH] tex2lyx/preamble.cpp: remove no longer used code git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30166 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/preamble.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/tex2lyx/preamble.cpp b/src/tex2lyx/preamble.cpp index ebd6f4b7da..4ddaa87318 100644 --- a/src/tex2lyx/preamble.cpp +++ b/src/tex2lyx/preamble.cpp @@ -524,7 +524,6 @@ void parse_preamble(Parser & p, ostream & os, // initialize fixed types special_columns['D'] = 3; bool is_full_document = false; - bool is_lyx_file = false; bool lyx_specific_preamble = false; // determine whether this is a full document or a fragment for inclusion @@ -566,10 +565,7 @@ void parse_preamble(Parser & p, ostream & os, else if (t.cat() == catComment) { // regex to parse comments static regex const islyxfile("%% LyX .* created this file"); - static regex const usercommands("User specified LaTeX commands"); - string const comment = t.asInput(); - // magically switch encoding default if it looks like XeLaTeX static string const magicXeLaTeX = "% This document must be compiled with XeLaTeX "; @@ -579,10 +575,7 @@ void parse_preamble(Parser & p, ostream & os, cerr << "XeLaTeX comment found, switching to UTF8\n"; h_inputencoding = "utf8"; } - smatch sub; - if (regex_search(comment, sub, islyxfile)) - is_lyx_file = true; // don't output LyX specific comments if (!is_known(comment, known_lyx_comments)) h_preamble << t.asInput(); -- 2.39.5