summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2022-07-28 13:05:30 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-28 16:17:04 +0300
commitc19150ea94ac095de63fe878282caf3b23dd461f (patch)
tree1ba62f4cf8457bdefa3f47461d80b2c9542f436a /src/ipa/raspberrypi/controller
parent5b07fa200334bd4932f7b0506cc38bd331ca84f4 (diff)
ipa: raspberrypi: Remove unused Controller constructor
The Controller(char const *jsonFilename) is not valid anymore since Controller::read() can now return an error on a failure. Additionally, this constructor is not actually used, so remove it. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/controller')
-rw-r--r--src/ipa/raspberrypi/controller/controller.cpp7
-rw-r--r--src/ipa/raspberrypi/controller/controller.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/src/ipa/raspberrypi/controller/controller.cpp b/src/ipa/raspberrypi/controller/controller.cpp
index bbd382bc..f4892786 100644
--- a/src/ipa/raspberrypi/controller/controller.cpp
+++ b/src/ipa/raspberrypi/controller/controller.cpp
@@ -25,13 +25,6 @@ Controller::Controller()
{
}
-Controller::Controller(char const *jsonFilename)
- : switchModeCalled_(false)
-{
- read(jsonFilename);
- initialise();
-}
-
Controller::~Controller() {}
int Controller::read(char const *filename)
diff --git a/src/ipa/raspberrypi/controller/controller.h b/src/ipa/raspberrypi/controller/controller.h
index 6be1e3cf..3e1e0517 100644
--- a/src/ipa/raspberrypi/controller/controller.h
+++ b/src/ipa/raspberrypi/controller/controller.h
@@ -40,7 +40,6 @@ class Controller
{
public:
Controller();
- Controller(char const *jsonFilename);
~Controller();
int read(char const *filename);
void initialise();