summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/raspberrypi.cpp
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2021-03-23 14:36:08 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-03-23 18:43:59 +0200
commit8ccddecc94c20c386e0af2493db0c03eddaa3061 (patch)
treea7e57a5193ff073279f5ae4acfb144bec18231e5 /src/ipa/raspberrypi/raspberrypi.cpp
parent256b1e0302db64d5453b7d9e7413f183eb77206f (diff)
ipa: raspberrypi: Remove unused member variable
The lastMode_ member variable is now unused, so remove it. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Tested-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/raspberrypi.cpp')
-rw-r--r--src/ipa/raspberrypi/raspberrypi.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
index bd20b144..93e43f06 100644
--- a/src/ipa/raspberrypi/raspberrypi.cpp
+++ b/src/ipa/raspberrypi/raspberrypi.cpp
@@ -67,8 +67,8 @@ class IPARPi : public ipa::RPi::IPARPiInterface
{
public:
IPARPi()
- : lastMode_({}), controller_(), frameCount_(0), checkCount_(0),
- mistrustCount_(0), lsTable_(nullptr), firstStart_(true)
+ : controller_(), frameCount_(0), checkCount_(0), mistrustCount_(0),
+ lsTable_(nullptr), firstStart_(true)
{
}
@@ -128,7 +128,6 @@ private:
/* Camera sensor params. */
CameraMode mode_;
- CameraMode lastMode_;
/* Raspberry Pi controller specific defines. */
std::unique_ptr<RPiController::CamHelper> helper_;
@@ -383,8 +382,6 @@ int IPARPi::configure(const CameraSensorInfo &sensorInfo,
result->controls = std::move(ctrls);
}
- lastMode_ = mode_;
-
return 0;
}