From: Richard Heck Date: Wed, 5 Mar 2014 22:53:29 +0000 (-0500) Subject: Simplify, and delete unused routine. X-Git-Tag: 2.1.0rc1~112 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bcf86b8477b829ace66d3b1459bf33a7a5c6c458;p=features.git Simplify, and delete unused routine. --- diff --git a/src/insets/InsetCaption.cpp b/src/insets/InsetCaption.cpp index f1f0983810..f6b24672e4 100644 --- a/src/insets/InsetCaption.cpp +++ b/src/insets/InsetCaption.cpp @@ -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(); diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h index b037c34660..cd99455b2e 100644 --- a/src/insets/InsetCaption.h +++ b/src/insets/InsetCaption.h @@ -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;