Message ID | 20210317100211.1067585-6-naush@raspberrypi.com |
---|---|
State | Changes Requested |
Headers | show |
Series |
|
Related | show |
Hi Naush, Thank you for the patch. On Wed, Mar 17, 2021 at 10:02:09AM +0000, Naushir Patuck wrote: > With the recent refactoring of code from ipa::configure() to ipa::init() > some member variable are now unused, so remove them. controllerInit_ could be dropped in 4/7. lastMode_ is already unused before this series, so you may want to update the commit message accordingly. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > Signed-off-by: Naushir Patuck <naush@raspberrypi.com> > --- > src/ipa/raspberrypi/raspberrypi.cpp | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp > index e2db0716b84b..2ca64bcdb80a 100644 > --- a/src/ipa/raspberrypi/raspberrypi.cpp > +++ b/src/ipa/raspberrypi/raspberrypi.cpp > @@ -67,8 +67,7 @@ class IPARPi : public ipa::RPi::IPARPiInterface > { > public: > IPARPi() > - : lastMode_({}), controller_(), controllerInit_(false), > - frameCount_(0), checkCount_(0), mistrustCount_(0), > + : controller_(), frameCount_(0), checkCount_(0), mistrustCount_(0), > lsTable_(nullptr), firstStart_(true) > { > } > @@ -129,12 +128,10 @@ private: > > /* Camera sensor params. */ > CameraMode mode_; > - CameraMode lastMode_; > > /* Raspberry Pi controller specific defines. */ > std::unique_ptr<RPiController::CamHelper> helper_; > RPiController::Controller controller_; > - bool controllerInit_; > RPiController::Metadata rpiMetadata_; > > /* > @@ -387,8 +384,6 @@ int IPARPi::configure(const CameraSensorInfo &sensorInfo, > result->controls = std::move(ctrls); > } > > - lastMode_ = mode_; > - > return 0; > } >
diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp index e2db0716b84b..2ca64bcdb80a 100644 --- a/src/ipa/raspberrypi/raspberrypi.cpp +++ b/src/ipa/raspberrypi/raspberrypi.cpp @@ -67,8 +67,7 @@ class IPARPi : public ipa::RPi::IPARPiInterface { public: IPARPi() - : lastMode_({}), controller_(), controllerInit_(false), - frameCount_(0), checkCount_(0), mistrustCount_(0), + : controller_(), frameCount_(0), checkCount_(0), mistrustCount_(0), lsTable_(nullptr), firstStart_(true) { } @@ -129,12 +128,10 @@ private: /* Camera sensor params. */ CameraMode mode_; - CameraMode lastMode_; /* Raspberry Pi controller specific defines. */ std::unique_ptr<RPiController::CamHelper> helper_; RPiController::Controller controller_; - bool controllerInit_; RPiController::Metadata rpiMetadata_; /* @@ -387,8 +384,6 @@ int IPARPi::configure(const CameraSensorInfo &sensorInfo, result->controls = std::move(ctrls); } - lastMode_ = mode_; - return 0; }
With the recent refactoring of code from ipa::configure() to ipa::init() some member variable are now unused, so remove them. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> --- src/ipa/raspberrypi/raspberrypi.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)