Remove unnecessary impl_reflect_for_btree_map macro (#12146)

# Objective

To remove the `impl_reflect_for_btree_map` macro as per #12140.

## Solution

Replaced the `impl_reflect_for_btree_map` macro.
This commit is contained in:
Antony 2024-02-26 20:04:11 -05:00 committed by GitHub
parent f7f7e326e5
commit fd0f1a37ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -622,9 +622,7 @@ impl_type_path!(::bevy_utils::hashbrown::hash_map::DefaultHashBuilder);
impl_type_path!(::bevy_utils::NoOpHash);
impl_type_path!(::bevy_utils::hashbrown::HashMap<K, V, S>);
macro_rules! impl_reflect_for_btree_map {
($ty:path) => {
impl<K, V> Map for $ty
impl<K, V> Map for ::std::collections::BTreeMap<K, V>
where
K: FromReflect + TypePath + Eq + Ord,
V: FromReflect + TypePath,
@ -720,7 +718,7 @@ macro_rules! impl_reflect_for_btree_map {
}
}
impl<K, V> Reflect for $ty
impl<K, V> Reflect for ::std::collections::BTreeMap<K, V>
where
K: FromReflect + TypePath + Eq + Ord,
V: FromReflect + TypePath,
@ -788,7 +786,7 @@ macro_rules! impl_reflect_for_btree_map {
}
}
impl<K, V> Typed for $ty
impl<K, V> Typed for ::std::collections::BTreeMap<K, V>
where
K: FromReflect + TypePath + Eq + Ord,
V: FromReflect + TypePath,
@ -799,7 +797,7 @@ macro_rules! impl_reflect_for_btree_map {
}
}
impl<K, V> GetTypeRegistration for $ty
impl<K, V> GetTypeRegistration for ::std::collections::BTreeMap<K, V>
where
K: FromReflect + TypePath + Eq + Ord,
V: FromReflect + TypePath,
@ -811,7 +809,7 @@ macro_rules! impl_reflect_for_btree_map {
}
}
impl<K, V> FromReflect for $ty
impl<K, V> FromReflect for ::std::collections::BTreeMap<K, V>
where
K: FromReflect + TypePath + Eq + Ord,
V: FromReflect + TypePath,
@ -830,10 +828,7 @@ macro_rules! impl_reflect_for_btree_map {
}
}
}
};
}
impl_reflect_for_btree_map!(::std::collections::BTreeMap<K, V>);
impl_type_path!(::std::collections::BTreeMap<K, V>);
impl<T: Reflect + TypePath, const N: usize> Array for [T; N] {