diff --git a/src/object-store/object_store.cpp b/src/object-store/object_store.cpp index c282e20b..1949c285 100644 --- a/src/object-store/object_store.cpp +++ b/src/object-store/object_store.cpp @@ -555,11 +555,7 @@ InvalidNullabilityException::InvalidNullabilityException(std::string const& obje m_what = "'Object' property '" + property.name + "' must be nullable."; } else { -#if REALM_NULL_STRINGS == 1 m_what = "Array or Mixed property '" + property.name + "' cannot be nullable"; -#else - m_what = "Only 'Object' property types are nullable"; -#endif } } diff --git a/src/object-store/schema.cpp b/src/object-store/schema.cpp index bf7a6181..911dc4e5 100644 --- a/src/object-store/schema.cpp +++ b/src/object-store/schema.cpp @@ -71,11 +71,7 @@ void Schema::validate() const // check nullablity if (prop.is_nullable) { -#if REALM_NULL_STRINGS == 1 if (prop.type == PropertyTypeArray || prop.type == PropertyTypeAny) { -#else - if (prop.type != PropertyTypeObject) { -#endif exceptions.emplace_back(InvalidNullabilityException(object.name, prop)); } }