From b9c3950bc531c4ebf88b646d2029a548dfda703d Mon Sep 17 00:00:00 2001 From: cvvergara Date: Sat, 30 Sep 2023 13:22:46 -0600 Subject: [PATCH] [lint] removing unused code --- include/cpp_common/basePath_SSEC.hpp | 8 +------- src/common/basePath_SSEC.cpp | 18 ------------------ 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/include/cpp_common/basePath_SSEC.hpp b/include/cpp_common/basePath_SSEC.hpp index 2764f843d0..bb594de354 100644 --- a/include/cpp_common/basePath_SSEC.hpp +++ b/include/cpp_common/basePath_SSEC.hpp @@ -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, diff --git a/src/common/basePath_SSEC.cpp b/src/common/basePath_SSEC.cpp index cbf0e5bbc5..1388cf4dc8 100644 --- a/src/common/basePath_SSEC.cpp +++ b/src/common/basePath_SSEC.cpp @@ -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(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 {