mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 16:45:07 +03:00
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>
This commit is contained in:
parent
5a952df386
commit
f1ab117e81
5 changed files with 8 additions and 31 deletions
|
@ -98,17 +98,15 @@ private:
|
|||
class ControlInfo
|
||||
{
|
||||
public:
|
||||
explicit ControlInfo(const ControlId &id, const ControlValue &min = 0,
|
||||
explicit ControlInfo(const ControlValue &min = 0,
|
||||
const ControlValue &max = 0);
|
||||
|
||||
const ControlId &id() const { return id_; }
|
||||
const ControlValue &min() const { return min_; }
|
||||
const ControlValue &max() const { return max_; }
|
||||
|
||||
std::string toString() const;
|
||||
|
||||
private:
|
||||
const ControlId &id_;
|
||||
ControlValue min_;
|
||||
ControlValue max_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue