]> git.lyx.org Git - features.git/commitdiff
Simplify, and delete unused routine.
authorRichard Heck <rgheck@lyx.org>
Wed, 5 Mar 2014 22:53:29 +0000 (17:53 -0500)
committerRichard Heck <rgheck@lyx.org>
Wed, 5 Mar 2014 22:55:38 +0000 (17:55 -0500)
src/insets/InsetCaption.cpp
src/insets/InsetCaption.h

index f1f0983810cc8b0b64c16362f86ad36cbb092b5c..f6b24672e46e221a0844659fc509ad2a2473dbf1 100644 (file)
@@ -199,9 +199,7 @@ void InsetCaption::doDispatch(Cursor & cur, FuncRequest & cmd)
        switch (cmd.action()) {
 
        case LFUN_INSET_MODIFY: {
-               string const first_arg = cmd.getArg(0);
-               bool const change_type = first_arg == "changetype";
-               if (change_type) {
+               if (cmd.getArg(0) == "changetype") {
                        cur.recordUndoInset(ATOMIC_UNDO, this);
                        type_ = cmd.getArg(1);
                        cur.forceBufferUpdate();
index b037c346607841bf98b0926e6911a9d51421a8d4..cd99455b2e5fb86c000ff3317a9d7a983f28eea9 100644 (file)
@@ -23,8 +23,6 @@ public:
        ///
        InsetCaption(Buffer *, std::string const &);
        ///
-       std::string const & type() const { return type_; }
-       ///
        std::string const & floattype() const { return floattype_; }
        ///
        docstring layoutName() const;