diff --git a/src/factory.cpp b/src/factory.cpp index 6ad657d3f3..1785887207 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -436,9 +436,6 @@ Inset * readInset(Lexer & lex, Buffer const & buf) case INCLUDE_CODE: inset.reset(new InsetInclude(inscmd)); break; - case INDEX_CODE: - inset.reset(new InsetIndex(buf.params())); - break; case INDEX_PRINT_CODE: inset.reset(new InsetPrintIndex(inscmd)); break; diff --git a/src/insets/InsetCommandParams.cpp b/src/insets/InsetCommandParams.cpp index 125f5de943..5a9ee9f7b9 100644 --- a/src/insets/InsetCommandParams.cpp +++ b/src/insets/InsetCommandParams.cpp @@ -86,8 +86,6 @@ CommandInfo const * InsetCommandParams::findInfo( return InsetHyperlink::findInfo(cmdName); case INCLUDE_CODE: return InsetInclude::findInfo(cmdName); - case INDEX_CODE: - return InsetIndex::findInfo(cmdName); case INDEX_PRINT_CODE: return InsetPrintIndex::findInfo(cmdName); case LABEL_CODE: @@ -123,8 +121,6 @@ std::string InsetCommandParams::getDefaultCmd(InsetCode code) { return InsetHyperlink::defaultCommand(); case INCLUDE_CODE: return InsetInclude::defaultCommand(); - case INDEX_CODE: - return InsetIndex::defaultCommand(); case INDEX_PRINT_CODE: return InsetPrintIndex::defaultCommand(); case LABEL_CODE: @@ -162,8 +158,6 @@ bool InsetCommandParams::isCompatibleCommand( return InsetHyperlink::isCompatibleCommand(s); case INCLUDE_CODE: return InsetInclude::isCompatibleCommand(s); - case INDEX_CODE: - return InsetIndex::isCompatibleCommand(s); case INDEX_PRINT_CODE: return InsetPrintIndex::isCompatibleCommand(s); case LABEL_CODE: diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp index 13537a0dfd..00b5ac8f9a 100644 --- a/src/insets/InsetIndex.cpp +++ b/src/insets/InsetIndex.cpp @@ -40,15 +40,6 @@ InsetIndex::InsetIndex(InsetIndex const & in) {} -CommandInfo const * InsetIndex::findInfo(std::string const & /* cmdName */) -{ - static const char * const paramnames[] = {"name", ""}; - static const bool isoptional[] = {false}; - static const CommandInfo info = {1, paramnames, isoptional}; - return &info; -} - - int InsetIndex::docbook(Buffer const & buf, odocstream & os, OutputParams const & runparams) const { diff --git a/src/insets/InsetIndex.h b/src/insets/InsetIndex.h index 664a47db2d..d3398df7b8 100644 --- a/src/insets/InsetIndex.h +++ b/src/insets/InsetIndex.h @@ -49,13 +49,6 @@ public: OutputParams const &) const; /// should paragraph indendation be omitted in any case? bool neverIndent(Buffer const &) const { return true; } - /// - static CommandInfo const * findInfo(std::string const & cmdName = ""); - /// - static std::string defaultCommand() { return "index"; }; - /// - static bool isCompatibleCommand(std::string const & s) - { return s == "index"; } private: /// bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;