]> git.lyx.org Git - features.git/commitdiff
Revert inadvertent commit.
authorRichard Heck <rgheck@comcast.net>
Thu, 25 Oct 2007 13:38:42 +0000 (13:38 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 25 Oct 2007 13:38:42 +0000 (13:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21200 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCommandParams.cpp
src/insets/InsetCommandParams.h

index b29c8ee9cb5166a623c84397af634dc40a8a086e..125f5de943af036768014a32881592a78f2cdccc 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)
 {
index 3a69a7895d1387c06e249f3b52d19c3d22607a32..376e1ff9393689ab8bef1169a7ad194bfbc0bdca 100644 (file)
@@ -38,36 +38,6 @@ struct CommandInfo {
        bool const * optional;
 };
 
-///
-struct ICPInfo {
-       ///
-       ICPInfo(std::string const & s, bool b);
-       /// Parameter name.
-       std::string paramName;
-       /// Whether it is optional.
-       bool optional;
-};
-///
-typedef std::list<ICPInfo> PList;
-///
-class ICPList {
-       public:
-               ///
-               PList::const_iterator begin() { return plist_.begin(); }
-               ///
-               PList::const_iterator end()   { return plist_.end(); }
-               ///
-               void clear() { plist_.clear(); }
-               ///
-               void addParam(std::string const & s, bool b = false);
-               ///
-               bool hasParam(std::string const & s);
-       private:
-               ///
-               PList plist_;
-       
-};
-
 
 class InsetCommandParams {
 public: