@@ -70,11 +70,7 @@ do_ordering(
7070 pgassert (!(*return_tuples));
7171 pgassert (*return_count == 0 );
7272
73- #if 0
74- using pgrouting::sloan;
75- #endif
76-
77- #if 0
73+ using pgrouting::sloanOrdering;
7874
7975 hint = edges_sql;
8076 auto edges = pgrouting::pgget::get_edges (std::string (edges_sql), true , true );
@@ -86,13 +82,12 @@ do_ordering(
8682 log << " Processing Undirected graph\n " ;
8783
8884 std::vector<int64_t > results;
85+
8986 pgrouting::UndirectedGraph undigraph;
9087 undigraph.insert_edges (edges);
9188
92- std::vector<II_t_rt> results;
93-
9489 if (which == 0 ) {
95- results = sloan (undigraph);
90+ results = sloanOrdering (undigraph);
9691 }
9792
9893
@@ -108,7 +103,7 @@ do_ordering(
108103
109104 (*return_tuples) = pgr_alloc (count, (*return_tuples));
110105
111- for (size_t i = 0; i < count; ++1 ) {
106+ for (size_t i = 0 ; i < count; ++i ) {
112107 (*return_tuples)[i] = results[i];
113108 }
114109
@@ -117,7 +112,6 @@ do_ordering(
117112 pgassert (*err_msg == NULL );
118113 *log_msg = to_pg_msg (log);
119114 *notice_msg = to_pg_msg (notice);
120- #endif
121115 } catch (AssertFailedException &except) {
122116 (*return_tuples) = pgr_free (*return_tuples);
123117 (*return_count) = 0 ;
0 commit comments