summaryrefslogtreecommitdiff
path: root/src/libcamera/controls.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-09-28 14:13:44 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-05 20:02:51 +0300
commitf1ab117e81e55b9b030dd921394dde294f7c3dc0 (patch)
tree4e7bfc405cd1d02deb10e91cd3457c7acba63d1c /src/libcamera/controls.cpp
parent5a952df386e2587e72dc378a1c97281e70ad57f5 (diff)
libcamera: controls: Remove ControlInfo::id
The ControlInfo id member is only used in the toString() method of the class, and nowhere else externally. The same way that ControlValue doesn't store a ControlId, ControlInfo shouldn't. Remove it. 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.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/libcamera/controls.cpp b/src/libcamera/controls.cpp
index 5e8b3a9b..526b7755 100644
--- a/src/libcamera/controls.cpp
+++ b/src/libcamera/controls.cpp
@@ -323,23 +323,16 @@ Control<int64_t>::Control(unsigned int id, const char *name)
/**
* \brief Construct a ControlInfo with minimum and maximum range parameters
- * \param[in] id The control ID
* \param[in] min The control minimum value
* \param[in] max The control maximum value
*/
-ControlInfo::ControlInfo(const ControlId &id, const ControlValue &min,
+ControlInfo::ControlInfo(const ControlValue &min,
const ControlValue &max)
- : id_(id), min_(min), max_(max)
+ : min_(min), max_(max)
{
}
/**
- * \fn ControlInfo::id()
- * \brief Retrieve the control ID
- * \return The control ID
- */
-
-/**
* \fn ControlInfo::min()
* \brief Retrieve the minimum value of the control
* \return A ControlValue with the minimum value for the control
@@ -358,7 +351,7 @@ std::string ControlInfo::toString() const
{
std::stringstream ss;
- ss << id_.name() << "[" << min_.toString() << ".." << max_.toString() << "]";
+ ss << "[" << min_.toString() << ".." << max_.toString() << "]";
return ss.str();
}