Skip to content

Commit

Permalink
Update JSIConverter+Variant.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Aug 7, 2024
1 parent 872e77c commit 790def8
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ struct JSIConverter<std::variant<Types...>> {
}

private:
static inline std::runtime_error typeNotSupportedError(const std::string& type) {
std::string types = TypeInfo::getFriendlyTypenames<Types...>();
return std::runtime_error(type + " is not supported in variant<" + types + ">!");
}

template <typename First, typename... Rest>
static inline std::variant<Types...> fromJSIRecursive(jsi::Runtime& runtime, const jsi::Value& value) {
if (JSIConverter<First>::canConvert(runtime, value)) {
Expand Down

0 comments on commit 790def8

Please sign in to comment.