commit bcf86b8477b829ace66d3b1459bf33a7a5c6c458
Author: Richard Heck <[email protected]>
Date: Wed Mar 5 17:53:29 2014 -0500
Simplify, and delete unused routine.
diff --git a/src/insets/InsetCaption.cpp b/src/insets/InsetCaption.cpp
index f1f0983..f6b2467 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 b037c34..cd99455 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;