Skip to content

Commit

Permalink
Remove set from realm_value_type for collections in mixed (#7245)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola-cab authored Jan 9, 2024
1 parent 0e3267d commit 467b84b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/realm.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ typedef enum realm_value_type {
RLM_TYPE_LINK,
RLM_TYPE_UUID,
RLM_TYPE_LIST,
RLM_TYPE_SET,
RLM_TYPE_DICTIONARY,
} realm_value_type_e;

Expand Down
5 changes: 0 additions & 5 deletions src/realm/object-store/c_api/conversion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ static inline Mixed from_capi(realm_value_t val)
return Mixed{UUID{from_capi(val.uuid)}};
case RLM_TYPE_LIST:
return Mixed{0, CollectionType::List};
case RLM_TYPE_SET:
return Mixed{0, CollectionType::Set};
case RLM_TYPE_DICTIONARY:
return Mixed{0, CollectionType::Dictionary};
}
Expand Down Expand Up @@ -231,9 +229,6 @@ static inline realm_value_t to_capi(Mixed value)
if (type == type_List) {
val.type = RLM_TYPE_LIST;
}
else if (type == type_Set) {
val.type = RLM_TYPE_SET;
}
else if (type == type_Dictionary) {
val.type = RLM_TYPE_DICTIONARY;
}
Expand Down
2 changes: 0 additions & 2 deletions src/realm/object-store/c_api/query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ struct QueryArgumentsAdapter : query_parser::Arguments {
return type_UUID;
case RLM_TYPE_LIST:
return type_List;
case RLM_TYPE_SET:
return type_Set;
case RLM_TYPE_DICTIONARY:
return type_Dictionary;
}
Expand Down
1 change: 0 additions & 1 deletion test/object-store/c_api/c_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ bool rlm_val_eq(realm_value_t lhs, realm_value_t rhs)
switch (lhs.type) {
case RLM_TYPE_NULL:
case RLM_TYPE_LIST:
case RLM_TYPE_SET:
case RLM_TYPE_DICTIONARY:
return true;
case RLM_TYPE_INT:
Expand Down

0 comments on commit 467b84b

Please sign in to comment.