Skip to content

Commit

Permalink
Remove py_to_any_dictionary
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Dec 4, 2022
1 parent c228768 commit cc60078
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,9 @@ static void set_type_record(SerializableObject* so, std::string schema_name) {
}

static SerializableObject* instance_from_schema(std::string schema_name,
int schema_version, py::object data) {
AnyDictionary object_data = py_to_any_dictionary(data);
int schema_version, AnyDictionaryProxy* data) {
auto result = TypeRegistry::instance().instance_from_schema(schema_name, schema_version,
object_data, ErrorStatusHandler());
data->fetch_any_dictionary(), ErrorStatusHandler());
return result;
}

Expand Down
8 changes: 0 additions & 8 deletions src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,6 @@ T py_to_cpp(py::handle const& o) {
return o.cast<T>();
}

AnyDictionary py_to_any_dictionary(py::object const& o) {
if (o.is_none()) {
return AnyDictionary();
}

return safely_cast_any_dictionary_any(py_to_any(o));
}

py::object any_to_py(any const& a, bool top_level) {
std::type_info const& tInfo = a.type();
auto e = _py_cast_dispatch_table.find(&tInfo);
Expand Down
2 changes: 0 additions & 2 deletions src/py-opentimelineio/opentimelineio-bindings/otio_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,3 @@ AnyDictionary py_to_cpp(pybind11::dict const& o);
AnyVector py_to_cpp(pybind11::iterable const& o);
template<typename T>
T py_to_cpp(pybind11::handle const& o);

AnyDictionary py_to_any_dictionary(pybind11::object const& o);

0 comments on commit cc60078

Please sign in to comment.