Skip to content

Commit

Permalink
[trsp_pgget] marking unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvergara committed Jan 25, 2024
1 parent e2ce6b7 commit 3be0767
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions include/c_common/trsp_pgget.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The old version of TRSP
@note
- The only function that should remain after all functions read the data on the
C++ code is `fetch_edge`
- The code to be removed is marked with "if 1 ... endif" directives
- The code to be removed is marked with "if 0 ... endif" directives
- The old version of TRSP will be removed on V4
@todo: Remove marked code
Expand Down Expand Up @@ -81,7 +81,7 @@ extern "C" {
#include "cpp_common/undefPostgresDefine.hpp"

#ifdef __cplusplus
#if 1
#if 0
using IID_t_rt = struct IID_t_rt;
using II_t_rt = struct II_t_rt;
using Coordinate_t = struct Coordinate_t;
Expand All @@ -92,14 +92,14 @@ using Edge_bool_t = struct Edge_bool_t;
using CostFlow_t = struct CostFlow_t;
#endif
using Edge_t = struct Edge_t;
#if 1
#if 0
using Orders_t = struct Orders_t;
using Point_on_edge_t = struct Point_on_edge_t;
using Vehicle_t = struct Vehicle_t;
using Restriction_t = struct Restriction_t;
#endif
#else
#if 1
#if 0
typedef struct IID_t_rt IID_t_rt;
typedef struct II_t_rt II_t_rt;
typedef struct Coordinate_t Coordinate_t;
Expand All @@ -110,7 +110,7 @@ typedef struct Edge_bool_t Edge_bool_t;
typedef struct CostFlow_t CostFlow_t;
#endif
typedef struct Edge_t Edge_t;
#if 1
#if 0
typedef struct Orders_t Orders_t;
typedef struct Point_on_edge_t Point_on_edge_t;
typedef struct Restriction_t Restriction_t;
Expand All @@ -122,7 +122,7 @@ typedef struct Vehicle_t Vehicle_t;
#ifdef __cplusplus
extern "C" {
#endif
#if 1
#if 0
/** @brief Read rows of combinations, called from C file*/
void pgr_get_combinations(char *, II_t_rt **, size_t *, char**);

Expand All @@ -136,7 +136,7 @@ void pgr_get_delauny(char*, Delauny_t**, size_t*, char**);
/** @brief Read edges called from C file*/
void pgr_get_edges(char*, Edge_t**, size_t*, bool, bool, char**);

#if 1
#if 0
/** @brief Read edges with x, y endpointscalled from C file */
void pgr_get_edges_xy(char*, Edge_xy_t**, size_t*, bool, char**);

Expand Down
10 changes: 5 additions & 5 deletions src/cpp_common/trsp_pgget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The old version of TRSP
@note
- The only function that should remain after all functions read the data on the
C++ code is `fetch_edge`
- The code to be removed is marked with "if 1 ... endif" directives
- The code to be removed is marked with "if 0 ... endif" directives
- The old version of TRSP will be removed on V4
@todo: Remove marked code
Expand All @@ -64,15 +64,15 @@ C++ code is `fetch_edge`
#include "cpp_common/trsp_pgfetch.hpp"

#include "c_types/info_t.hpp"
#if 1
#if 0
#include "c_types/coordinate_t.h"
#include "c_types/costFlow_t.h"
#include "c_types/ii_t_rt.h"
#include "c_types/iid_t_rt.h"
#include "c_types/delauny_t.h"
#endif
#include "c_types/edge_t.h"
#if 1
#if 0
#include "c_types/edge_bool_t_rt.h"
#include "c_types/edge_xy_t.h"
#include "c_types/flow_t.h"
Expand All @@ -82,7 +82,7 @@ C++ code is `fetch_edge`
#include "c_types/restriction_t.h"
#endif

#if 1
#if 0
/**
* @param[out] arrlen Length of the array
* @param[in] input the postgres array
Expand Down Expand Up @@ -447,7 +447,7 @@ pgr_get_edges(
}
}

#if 1
#if 0
/**
For queries of the type:
~~~~{.c}
Expand Down

0 comments on commit 3be0767

Please sign in to comment.