remove duplication
This commit is contained in:
@@ -31,10 +31,8 @@ void MenuCaptureRoute::printPage() const {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
lineOne = "Unkown page";
|
this->printDefault();
|
||||||
lineTwo = "Number: ";
|
return;
|
||||||
lineTwo.concat(currentPage);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this->print(lineOne, lineTwo);
|
this->print(lineOne, lineTwo);
|
||||||
|
|||||||
@@ -27,10 +27,8 @@ void MenuManualControl::printPage() const {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
lineOne = "Unkown page";
|
this->printDefault();
|
||||||
lineTwo = "Number: ";
|
return;
|
||||||
lineTwo.concat(currentPage);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this->print(lineOne, lineTwo);
|
this->print(lineOne, lineTwo);
|
||||||
|
|||||||
Reference in New Issue
Block a user