Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
eyal0 committed Jul 5, 2020
1 parent a9d3d87 commit 763e034
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 21 deletions.
4 changes: 0 additions & 4 deletions board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@ void Board::createLayers()
}
}

vector<pair<coordinate_type_fp, multi_linestring_type_fp>> Board::get_toolpath(string layername) {
return layers[layername]->get_toolpaths();
}

/******************************************************************************/
/*
*/
Expand Down
10 changes: 5 additions & 5 deletions board.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ class Board

void prepareLayer(std::string layername, std::shared_ptr<GerberImporter> importer,
std::shared_ptr<RoutingMill> manufacturer, bool backside);
void set_margins(double margins) { margin = margins; }
void set_margins(double margins) { margin = margins; }
coordinate_type_fp get_width();
coordinate_type_fp get_height();
coordinate_type_fp get_min_x() { return min_x; }
coordinate_type_fp get_max_x() { return max_x; }
coordinate_type_fp get_min_y() { return min_y; }
coordinate_type_fp get_max_y() { return max_y; }
coordinate_type_fp get_min_x() { return min_x; }
coordinate_type_fp get_max_x() { return max_x; }
coordinate_type_fp get_min_y() { return min_y; }
coordinate_type_fp get_max_y() { return max_y; }
double get_layersnum() { return layers.size(); }

std::vector<std::string> list_layers();
Expand Down
12 changes: 0 additions & 12 deletions tsp_solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@
class tsp_solver {
private:
enum class Side { FRONT, BACK };
// You can extend this class adding new overloads of get with this prototype:
// point_type_fp get(T _name_, Side side) { ... }
// point_type_fp reverse(T _name_) { ... }
static inline point_type_fp get(const point_type_fp& point, Side side) {
UNUSED(side);
return point;
}

static inline void reverse(point_type_fp& point) {
UNUSED(point);
return;
}

static inline point_type_fp get(const linestring_type_fp& line, Side side) {
if (side == Side::FRONT) {
Expand Down

0 comments on commit 763e034

Please sign in to comment.