[libcamera-devel,v3,5/7] ipa: raspberrypi: Remove unused member variable
diff mbox series

Message ID 20210323143610.787760-6-naush@raspberrypi.com
State Accepted
Headers show
Series
  • Raspberry Pi: ipa::init() restructuring
Related show

Commit Message

Naushir Patuck March 23, 2021, 2:36 p.m. UTC
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>
---
 src/ipa/raspberrypi/raspberrypi.cpp | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Patch
diff mbox series

diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
index bd20b144f520..93e43f0626fb 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;
 }