summaryrefslogtreecommitdiffstats
path: root/balls.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-10-09 09:52:58 -0400
committerSam Anthony <sam@samanthony.xyz>2024-10-09 09:52:58 -0400
commitbe293853da068b28143f75bb19c59b3915fd35e6 (patch)
treea2d8ae0c0175b8afee92461b7abf584c97a9890e /balls.h
parent30b579c8ce41c105392c436880612a0e9057880f (diff)
downloadballs-be293853da068b28143f75bb19c59b3915fd35e6.zip
remove dead code
Diffstat (limited to 'balls.h')
-rw-r--r--balls.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/balls.h b/balls.h
index b908183..63d5278 100644
--- a/balls.h
+++ b/balls.h
@@ -33,9 +33,6 @@ typedef struct {
Color color;
} Ball;
-typedef continue_node<continue_msg> node_t;
-typedef const continue_msg & msg_t;
-
class Collision {
public:
Ball *b1, *b2;
@@ -53,22 +50,11 @@ public:
return a.b1 == b.b1 && a.b2 == b.b2;
}
- friend ostream &operator<<(ostream& os, Collision const & c) {
+ friend ostream& operator<<(ostream& os, Collision const & c) {
return os << "(" << c.b1 << ", " << c.b2 << ")";
}
};
-class CollisionGraph {
-private:
- graph g;
- node_t root;
- vector<vector<reference_wrapper<node_t>>> layers;
-
-public:
- CollisionGraph(void);
- void run();
-};
-
vector<vector<Collision>> partitionCollisions(vector<Ball *> balls);
Point addPt(Point p, Point q);