]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommandParams.cpp
pimpl not needed here
[lyx.git] / src / insets / InsetCommandParams.cpp
index b29c8ee9cb5166a623c84397af634dc40a8a086e..5a9ee9f7b95aa996d6b85e1ae98ef5bc0d64b06c 100644 (file)
@@ -48,27 +48,6 @@ using std::ostream;
 using support::ExceptionMessage;
 using support::WarningException;
 
-ICPInfo::ICPInfo(std::string const & s, bool b)
-       : paramName(s), optional(b)
-{}
-
-
-void ICPList::addParam(std::string const & s, bool b) {
-       plist_.push_back(ICPInfo(s, b));
-}
-
-
-bool ICPList::hasParam(std::string const & s) {
-       PList::const_iterator it = begin();
-       PList::const_iterator et = end();
-       for (; it != et; ++it) {
-               if (it->paramName == s)
-                       return true;
-       }
-       return false;
-}
-
-
 InsetCommandParams::InsetCommandParams(InsetCode code)
        : insetCode_(code), preview_(false)
 {
@@ -107,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:
@@ -144,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:
@@ -183,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: