Skip to content

Commit

Permalink
[lint] removing unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvergara committed Oct 2, 2023
1 parent ff80318 commit b9c3950
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
8 changes: 1 addition & 7 deletions include/cpp_common/basePath_SSEC.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,7 @@ class Path {
void append(const Path &other);
void empty_path(unsigned int d_vertex);

void get_pg_ksp_path(
Path_rt **ret_path,
size_t &sequence, int routeId) const;

void get_pg_nksp_path(
Path_rt **ret_path,
size_t &sequence) const;
void get_pg_nksp_path(Path_rt**, size_t&) const;

void get_pg_turn_restricted_path(
Path_rt **ret_path,
Expand Down
18 changes: 0 additions & 18 deletions src/common/basePath_SSEC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,24 +265,6 @@ void Path::generate_tuples(


/* used by ksp */
void Path::get_pg_ksp_path(
Path_rt **ret_path,
size_t &sequence, int routeId) const {
for (unsigned int i = 0; i < path.size(); i++) {
(*ret_path)[sequence].seq = static_cast<int>(i + 1);
(*ret_path)[sequence].start_id = routeId;
(*ret_path)[sequence].end_id = end_id();
(*ret_path)[sequence].node = path[i].node;
(*ret_path)[sequence].edge = path[i].edge;
(*ret_path)[sequence].cost = path[i].cost;
(*ret_path)[sequence].agg_cost = (i == 0)?
0 :
(*ret_path)[sequence-1].agg_cost + path[i-1].cost;
sequence++;
}
}

/* used by new ksp */
void Path::get_pg_nksp_path(
Path_rt **ret_path,
size_t &sequence) const {
Expand Down

0 comments on commit b9c3950

Please sign in to comment.