Skip to content

Commit c292e4f

Browse files
committed
removed unused code
1 parent 4a1d191 commit c292e4f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/day9.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,6 @@ std::string to_string(const Point &p) {
5959
return s;
6060
}
6161

62-
void step(Point &H, Point &T, std::string_view instruction,
63-
std::set<std::string> &visited) {
64-
char direction = instruction[0];
65-
for (int step_size =
66-
std::atoi(instruction.substr(1, instruction.size() - 1).data());
67-
step_size > 0; --step_size) {
68-
H.step(direction);
69-
T.follow(H);
70-
visited.emplace(to_string(T));
71-
}
72-
}
73-
7462
template <size_t n>
7563
void step(std::array<Point, n> &points, std::string_view instruction,
7664
std::set<std::string> &visited) {

0 commit comments

Comments
 (0)