removed unused code

This commit is contained in:
incredibleLeitman 2020-11-30 20:11:16 +01:00
parent ade947d219
commit 885ef158c3

View File

@ -9,9 +9,6 @@
#include "Line.h" #include "Line.h"
//class Point;
//class Line;
#define OFFSET 10.f #define OFFSET 10.f
#define WIDTH 800 #define WIDTH 800
#define HEIGHT 600 #define HEIGHT 600
@ -25,21 +22,13 @@ private:
sf::Font m_font; sf::Font m_font;
sf::Text m_textStatus; sf::Text m_textStatus;
//std::vector<Point> m_points;
std::vector<sf::CircleShape> m_points; std::vector<sf::CircleShape> m_points;
std::vector<sf::Text> m_labels; std::vector<sf::Text> m_labels;
//sf::VertexArray m_points;
//sf::VertexArray m_labels;
//std::vector<sf::Vertex> m_hull;
std::vector<sf::CircleShape> m_hullPoints; std::vector<sf::CircleShape> m_hullPoints;
//sf::VertexArray m_hull;
//sf::ConvexShape m_convex; // shape for convex hull -> does not fit because points have to be aligned already
//std::map<Line, std::vector<Point> > m_pointsForLine;
std::vector<Line> m_lines; std::vector<Line> m_lines;
//std::list<Line> m_lines; //std::list<Line> m_lines;
//Line *m_curLine = nullptr; // get any value if the underlying vector gets resized and moved in memory //Line *m_curLine = nullptr; // get any value if the underlying vector gets resized and moved in memory -> thus, use list
Line m_curLine; // -> either make a copy Line m_curLine; // -> either make a copy
int m_curLineIdx = -1; // or just use index int m_curLineIdx = -1; // or just use index