diff options
Diffstat (limited to 'core/vset.h')
-rw-r--r-- | core/vset.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/vset.h b/core/vset.h index b96a115d21..45516bdb05 100644 --- a/core/vset.h +++ b/core/vset.h @@ -36,11 +36,9 @@ template <class T> class VSet { - Vector<T> _data; _FORCE_INLINE_ int _find(const T &p_val, bool &r_exact) const { - r_exact = false; if (_data.empty()) return 0; @@ -75,7 +73,6 @@ class VSet { } _FORCE_INLINE_ int _find_exact(const T &p_val) const { - if (_data.empty()) return -1; @@ -101,7 +98,6 @@ class VSet { public: void insert(const T &p_val) { - bool exact; int pos = _find(p_val, exact); if (exact) @@ -110,12 +106,10 @@ public: } bool has(const T &p_val) const { - return _find_exact(p_val) != -1; } void erase(const T &p_val) { - int pos = _find_exact(p_val); if (pos < 0) return; @@ -123,7 +117,6 @@ public: } int find(const T &p_val) const { - return _find_exact(p_val); } @@ -132,12 +125,10 @@ public: _FORCE_INLINE_ int size() const { return _data.size(); } inline T &operator[](int p_index) { - return _data.write[p_index]; } inline const T &operator[](int p_index) const { - return _data[p_index]; } }; |