]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.cpp
Thanks, Abdel.
[lyx.git] / src / TextClass.cpp
index ef6b8e8f66ca4e93f0bee9322914e60070c9ffc1..ff70eeaf03c072474281b1d471f27ccae875ad41 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "frontends/alert.h"
 
-#include "support/assert.h"
+#include "support/lassert.h"
 #include "support/debug.h"
 #include "support/ExceptionMessage.h"
 #include "support/FileName.h"
@@ -163,7 +163,6 @@ enum TextClassTags {
        TC_STYLE,
        TC_DEFAULTSTYLE,
        TC_INSETLAYOUT,
-       TC_ENVIRONMENT,
        TC_NOSTYLE,
        TC_COLUMNS,
        TC_SIDES,
@@ -196,7 +195,6 @@ namespace {
                { "counter",         TC_COUNTER },
                { "defaultfont",     TC_DEFAULTFONT },
                { "defaultstyle",    TC_DEFAULTSTYLE },
-               { "environment",     TC_ENVIRONMENT },
                { "float",           TC_FLOAT },
                { "format",          TC_FORMAT },
                { "input",           TC_INPUT },
@@ -386,7 +384,6 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt)
                        }
                        break;
 
-               case TC_ENVIRONMENT:
                case TC_STYLE:
                        if (lexrc.next()) {
                                docstring const name = from_utf8(subst(lexrc.getString(),
@@ -405,8 +402,6 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt)
                                } else {
                                        Layout layout;
                                        layout.setName(name);
-                                       if (le == TC_ENVIRONMENT)
-                                               layout.is_environment = true;
                                        error = !readStyle(lexrc, layout);
                                        if (!error)
                                                layoutlist_.push_back(layout);