diff options
author | Oliver Sander <oliver.sander@tu-dresden.de> | 2018-12-02 20:41:27 +0100 |
---|---|---|
committer | Albert Astals Cid <tsdgeos@yahoo.es> | 2019-03-21 22:28:12 +0000 |
commit | fa8f3f22e85a5508fa53e8604b079e9b73e63f76 (patch) | |
tree | aae8d0913e35ce574b9c29c201757c8138d2f3db /goo | |
parent | 760ca656bd30bba162392011ebca5c67df25ae47 (diff) |
Remove method GooList::get
Use operator[] instead. This is another move towards discarding
GooList in favor of std::vector.
Diffstat (limited to 'goo')
-rw-r--r-- | goo/GooList.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/goo/GooList.h b/goo/GooList.h index 3e64811e..c95dbccf 100644 --- a/goo/GooList.h +++ b/goo/GooList.h @@ -48,10 +48,6 @@ public: // Zero cost conversion from std::vector explicit GooList(const std::vector<T>& vec) : std::vector<T>(vec) {} explicit GooList(std::vector<T>&& vec) : std::vector<T>(std::move(vec)) {} - - // Return the <i>th element. - // Assumes 0 <= i < length. - const T& get(int i) const { return (*this)[i]; } }; #endif // GOO_LIST_H |