diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-10-09 09:52:58 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-10-09 09:52:58 -0400 |
| commit | be293853da068b28143f75bb19c59b3915fd35e6 (patch) | |
| tree | a2d8ae0c0175b8afee92461b7abf584c97a9890e /balls.h | |
| parent | 30b579c8ce41c105392c436880612a0e9057880f (diff) | |
| download | balls-be293853da068b28143f75bb19c59b3915fd35e6.zip | |
remove dead code
Diffstat (limited to 'balls.h')
| -rw-r--r-- | balls.h | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -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); |