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:
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user