Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused struct from NavigationMesh #79713

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions scene/resources/navigation_mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,6 @@ class NavigationMesh : public Resource {
Vector<Polygon> polygons;
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:
static void _bind_methods();
void _validate_property(PropertyInfo &p_property) const;
Expand Down