Remove useless breaks

This commit is contained in:
Yuriy Skalko 2020-11-30 18:06:12 +02:00
parent 2ab39fe121
commit 66403b4449

View File

@ -237,22 +237,16 @@ docstring InsetNewpage::insetLabel() const
switch (params_.kind) { switch (params_.kind) {
case InsetNewpageParams::NEWPAGE: case InsetNewpageParams::NEWPAGE:
return _("New Page"); return _("New Page");
break;
case InsetNewpageParams::PAGEBREAK: case InsetNewpageParams::PAGEBREAK:
return _("Page Break"); return _("Page Break");
break;
case InsetNewpageParams::CLEARPAGE: case InsetNewpageParams::CLEARPAGE:
return _("Clear Page"); return _("Clear Page");
break;
case InsetNewpageParams::CLEARDOUBLEPAGE: case InsetNewpageParams::CLEARDOUBLEPAGE:
return _("Clear Double Page"); return _("Clear Double Page");
break;
case InsetNewpageParams::NOPAGEBREAK: case InsetNewpageParams::NOPAGEBREAK:
return _("No Page Break"); return _("No Page Break");
break;
default: default:
return _("New Page"); return _("New Page");
break;
} }
} }
@ -263,12 +257,10 @@ ColorCode InsetNewpage::ColorName() const
case InsetNewpageParams::PAGEBREAK: case InsetNewpageParams::PAGEBREAK:
case InsetNewpageParams::NOPAGEBREAK: case InsetNewpageParams::NOPAGEBREAK:
return Color_pagebreak; return Color_pagebreak;
break;
case InsetNewpageParams::NEWPAGE: case InsetNewpageParams::NEWPAGE:
case InsetNewpageParams::CLEARPAGE: case InsetNewpageParams::CLEARPAGE:
case InsetNewpageParams::CLEARDOUBLEPAGE: case InsetNewpageParams::CLEARDOUBLEPAGE:
return Color_newpage; return Color_newpage;
break;
} }
// not really useful, but to avoids gcc complaints // not really useful, but to avoids gcc complaints
return Color_newpage; return Color_newpage;