diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-13 03:04:16 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-16 03:28:25 +0300 |
commit | 454bc6129ffa80ab5666afff7f03c81eb79fefbd (patch) | |
tree | 642b794758b9fa7367eb8a64c82d3feea6d4a622 /src/ipa/libipa/vector.h | |
parent | 64ed07d4d057411c3fb669dc1faa27e61efd2811 (diff) |
ipa: libipa: vector: Drop readYaml() function
Now that YAML deserialization of Vector instances is supported through
YamlObject::get(), remove the Vector::readYaml() function. It turns out
not to be used.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/libipa/vector.h')
-rw-r--r-- | src/ipa/libipa/vector.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/ipa/libipa/vector.h b/src/ipa/libipa/vector.h index 4b2fe581..2a290620 100644 --- a/src/ipa/libipa/vector.h +++ b/src/ipa/libipa/vector.h @@ -39,29 +39,6 @@ public: data_[i] = data[i]; } - int readYaml(const libcamera::YamlObject &yaml) - { - if (yaml.size() != Rows) { - LOG(Vector, Error) - << "Wrong number of values in vector: expected " - << Rows << ", got " << yaml.size(); - return -EINVAL; - } - - unsigned int i = 0; - for (const auto &x : yaml.asList()) { - auto value = x.get<T>(); - if (!value) { - LOG(Vector, Error) << "Failed to read vector value"; - return -EINVAL; - } - - data_[i++] = *value; - } - - return 0; - } - const T &operator[](size_t i) const { ASSERT(i < data_.size()); |