Remove useless assignments to a local variables never read later.

This commit is contained in:
Stephan Witt 2020-02-18 08:55:45 +01:00
parent 225de7830e
commit fe02f151f9

View File

@ -1610,7 +1610,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
if (inautoarg) {
cur.leaveInset(cur.inset());
cur.posForward();
inautoarg = false;
}
FuncRequest const cmd2(LFUN_ARGUMENT_INSERT, la_pair.first);
lyx::dispatch(cmd2);
@ -2096,7 +2095,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
if (inautoarg) {
cur.leaveInset(cur.inset());
cur.posForward();
inautoarg = false;
if (arg.insertonnewline && cur.pos() > 0) {
FuncRequest cmd2(LFUN_PARAGRAPH_BREAK);
lyx::dispatch(cmd2);