From bcf86b8477b829ace66d3b1459bf33a7a5c6c458 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 5 Mar 2014 17:53:29 -0500 Subject: [PATCH] Simplify, and delete unused routine. --- src/insets/InsetCaption.cpp | 4 +--- src/insets/InsetCaption.h | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) 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; -- 2.39.2