From 8ccddecc94c20c386e0af2493db0c03eddaa3061 Mon Sep 17 00:00:00 2001 From: Naushir Patuck Date: Tue, 23 Mar 2021 14:36:08 +0000 Subject: ipa: raspberrypi: Remove unused member variable The lastMode_ member variable is now unused, so remove it. Signed-off-by: Naushir Patuck Tested-by: David Plowman Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/ipa/raspberrypi/raspberrypi.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') 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 helper_; @@ -383,8 +382,6 @@ int IPARPi::configure(const CameraSensorInfo &sensorInfo, result->controls = std::move(ctrls); } - lastMode_ = mode_; - return 0; } -- cgit v1.2.1