Remove unused struct from NavigationMesh

Removes unused struct from NavigationMesh.
This commit is contained in:
smix8 2023-07-20 18:16:32 +02:00
parent 0c2144da90
commit 81930c6719

View file

@ -43,19 +43,6 @@ class NavigationMesh : public Resource {
Vector<Polygon> polygons; Vector<Polygon> polygons;
Ref<ArrayMesh> debug_mesh; Ref<ArrayMesh> debug_mesh;
struct _EdgeKey {
Vector3 from;
Vector3 to;
static uint32_t hash(const _EdgeKey &p_key) {
return HashMapHasherDefault::hash(p_key.from) ^ HashMapHasherDefault::hash(p_key.to);
}
bool operator==(const _EdgeKey &p_with) const {
return HashMapComparatorDefault<Vector3>::compare(from, p_with.from) && HashMapComparatorDefault<Vector3>::compare(to, p_with.to);
}
};
protected: protected:
static void _bind_methods(); static void _bind_methods();
void _validate_property(PropertyInfo &p_property) const; void _validate_property(PropertyInfo &p_property) const;