[escher] Inline empty functions in ViewController

This commit is contained in:
Romain Goyet
2020-02-13 16:17:16 -05:00
committed by Ecco
parent 02a19fc83d
commit 7f767990d2
2 changed files with 3 additions and 16 deletions

View File

@@ -44,12 +44,12 @@ public:
/* With WantsMaximumSpace, no stack headers are displayed. */
};
ViewController(Responder * parentResponder);
virtual const char * title();
ViewController(Responder * parentResponder) : Responder(parentResponder) {}
virtual const char * title() { return nullptr; }
virtual View * view() = 0;
virtual void initView() {}
virtual void viewWillAppear();
virtual void viewDidDisappear();
virtual void viewDidDisappear() {}
virtual DisplayParameter displayParameter() { return DisplayParameter::Default; }
};

View File

@@ -1,17 +1,4 @@
#include <escher/view_controller.h>
ViewController::ViewController(Responder * parentResponder) :
Responder(parentResponder)
{
}
const char * ViewController::title() {
return nullptr;
}
void ViewController::viewWillAppear() {
}
void ViewController::viewDidDisappear() {
}