]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
* src/LyXRC.{cpp,h}:
[lyx.git] / src / factory.cpp
index 1785887207d487941f7c7c09d305fa188ef5fa56..64eb68047e1e2ac97a35139efa3947291f374356 100644 (file)
@@ -542,18 +542,6 @@ Inset * readInset(Lexer & lex, Buffer const & buf)
                }
 
                inset->read(buf, lex);
-
-// FIXME: hack..
-               if (inset->lyxCode() == MATHMACRO_CODE) {
-                       MathMacroTemplate const * tmpl =
-                               static_cast<MathMacroTemplate*>(inset.get());
-                       MacroTable::globalMacros().insert
-                               (tmpl->name(), tmpl->asMacroData());
-                       LYXERR(Debug::DEBUG)
-                               << BOOST_CURRENT_FUNCTION
-                               << ": creating local macro " << to_utf8(tmpl->name())
-                               << endl;
-               }
        }
 
        return inset.release();