Simplify, and delete unused routine.

This commit is contained in:
Richard Heck 2014-03-05 17:53:29 -05:00
parent c37cacaffb
commit bcf86b8477
2 changed files with 1 additions and 5 deletions

View 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();

View 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;