summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-03 18:33:55 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-08-31 22:44:11 +0300
commit29b372a56af2978b9f6bd428bdaaeff35bcca089 (patch)
tree4031e5f03f88cdd9044da598bcd59e764708a673
parent33914c4cee632bd2d77dba16014d97f06fa1db35 (diff)
libcamera: pipeline: simple: Remove SimplePipelineHandler::activeCamera_
The SimplePipelineHandler activeCamera_ member pointer is set but never used. Drop it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Martin Kepplinger <martin.kepplinger@puri.sm>
-rw-r--r--src/libcamera/pipeline/simple/simple.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp
index 582c9ba4..cadaf5d0 100644
--- a/src/libcamera/pipeline/simple/simple.cpp
+++ b/src/libcamera/pipeline/simple/simple.cpp
@@ -313,8 +313,6 @@ private:
std::map<const MediaEntity *, EntityData> entities_;
MediaDevice *converter_;
-
- Camera *activeCamera_;
};
/* -----------------------------------------------------------------------------
@@ -1035,8 +1033,6 @@ int SimplePipelineHandler::start(Camera *camera, [[maybe_unused]] const ControlL
video->queueBuffer(buffer.get());
}
- activeCamera_ = camera;
-
return 0;
}
@@ -1054,7 +1050,6 @@ void SimplePipelineHandler::stop(Camera *camera)
video->bufferReady.disconnect(data, &SimpleCameraData::bufferReady);
data->converterBuffers_.clear();
- activeCamera_ = nullptr;
releasePipeline(data);
}