summaryrefslogtreecommitdiff
path: root/src/libcamera/controls.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-09-28 02:22:57 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-05 20:02:51 +0300
commit5a952df386e2587e72dc378a1c97281e70ad57f5 (patch)
treedf3328fe93fee106dacf2358d00704e3eff0ead7 /src/libcamera/controls.cpp
parent8ea6912c9607dab0a30c9bbf518dfc80df68a10c (diff)
libcamera: controls: Remove the unused ControlList::update() method
The ControlList::update() method is unused. While it is meant to fulfil a need of applications, having no user means that it is most probably not correctly designed. Remove the method, we will add it back later if needed. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/libcamera/controls.cpp')
-rw-r--r--src/libcamera/controls.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/libcamera/controls.cpp b/src/libcamera/controls.cpp
index a34af588..5e8b3a9b 100644
--- a/src/libcamera/controls.cpp
+++ b/src/libcamera/controls.cpp
@@ -512,32 +512,4 @@ ControlValue *ControlList::find(const ControlId &id)
return &controls_[&id];
}
-/**
- * \brief Update the list with a union of itself and \a other
- * \param other The other list
- *
- * Update the control list to include all values from the \a other list.
- * Elements in the list whose control IDs are contained in \a other are updated
- * with the value from \a other. Elements in the \a other list that have no
- * corresponding element in the list are added to the list with their value.
- *
- * The behaviour is undefined if the two lists refer to different Camera
- * instances.
- */
-void ControlList::update(const ControlList &other)
-{
- if (other.camera_ != camera_) {
- LOG(Controls, Error)
- << "Can't update ControlList from a different camera";
- return;
- }
-
- for (auto it : other) {
- const ControlId *id = it.first;
- const ControlValue &value = it.second;
-
- controls_[id] = value;
- }
-}
-
} /* namespace libcamera */