diff options
Diffstat (limited to 'src/ipa')
-rw-r--r-- | src/ipa/libipa/vector.cpp | 13 | ||||
-rw-r--r-- | src/ipa/libipa/vector.h | 23 |
2 files changed, 0 insertions, 36 deletions
diff --git a/src/ipa/libipa/vector.cpp b/src/ipa/libipa/vector.cpp index 4e987d82..b071b261 100644 --- a/src/ipa/libipa/vector.cpp +++ b/src/ipa/libipa/vector.cpp @@ -41,19 +41,6 @@ namespace ipa { */ /** - * \fn Vector::readYaml - * \brief Populate the vector with yaml data - * \param yaml Yaml data to populate the vector with - * - * Any existing data in the vector will be overwritten. The size of the data - * read from \a yaml must be equal to the dimension size Rows of the vector. - * - * The yaml data is expected to be a list with elements of type T. - * - * \return 0 on success, negative error code otherwise - */ - -/** * \fn T Vector::operator[](size_t i) const * \brief Index to an element in the vector * \param i Index of element to retrieve 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()); |