Skip to content

Commit

Permalink
Removed some legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroSant committed Oct 5, 2022
1 parent 873c26a commit d23202e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

13 changes: 0 additions & 13 deletions myHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,4 @@ void sortVectorsAscending(const std::vector<T> &t, std::vector<SS> &... ss) {

template <typename T> int sgn(T val) { return (T(0) < val) - (val < T(0)); }

template <typename T> class Vector2D : public std::vector<T> {
protected:
unsigned _width;

public:
unsigned width() { return _width; }
void setWidth(unsigned i) { width = i; }

T &operator()(int x, int y) { return this->operator[](x + _width * y); }

Vector2D(unsigned newWidth) : std::vector<T>(), _width(newWidth) {}
};

#endif

0 comments on commit d23202e

Please sign in to comment.