From e99fc4b0d52957cf4ec493a55f2855d2d6ae201b Mon Sep 17 00:00:00 2001 From: Sebastian Fricke Date: Sun, 28 Mar 2021 16:27:12 +0200 Subject: pipeline: raspberrypi: Remove unused getFormat call The comment states, that we get the device format to pass it to the IPA, but the variable `sensorFormat` is not used again after it's assignment. Remove it, together with the comment. Signed-off-by: Sebastian Fricke Reviewed-by: Laurent Pinchart Reviewed-by: Naushir Patuck Signed-off-by: Laurent Pinchart --- src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/libcamera/pipeline/raspberrypi/raspberrypi.cpp') diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp index 378a5227..f22e286e 100644 --- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp +++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp @@ -1238,9 +1238,6 @@ int RPiCameraData::configureIPA(const CameraConfiguration *config) std::map entityControls; ipa::RPi::IPAConfig ipaConfig; - /* Get the device format to pass to the IPA. */ - V4L2DeviceFormat sensorFormat; - unicam_[Unicam::Image].dev()->getFormat(&sensorFormat); /* Inform IPA of stream configuration and sensor controls. */ unsigned int i = 0; for (auto const &stream : isp_) { -- cgit v1.2.1