diff options
-rw-r--r-- | src/history.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/history.cc b/src/history.cc index fb0d320c..dbcdc823 100644 --- a/src/history.cc +++ b/src/history.cc @@ -467,13 +467,6 @@ commodity_history_impl_t::find_price(const commodity_t& source, const commodity_t * last_target = ⌖ -#if REVERSE_PREDECESSOR_MAP - typedef tuple<const commodity_t *, const commodity_t *, - const price_point_t *> results_tuple; - std::vector<results_tuple> results; - bool results_reversed = false; -#endif - vertex_descriptor v = tv; for (vertex_descriptor u = predecessorMap[v]; u != v; @@ -494,23 +487,7 @@ commodity_history_impl_t::find_price(const commodity_t& source, const commodity_t * u_comm = get(namemap, u); const commodity_t * v_comm = get(namemap, v); -#if REVERSE_PREDECESSOR_MAP - if (v == tv && u_comm != last_target && v_comm != last_target) - results_reversed = true; - - results.push_back(results_tuple(u_comm, v_comm, &point)); - } - - if (results_reversed) - std::reverse(results.begin(), results.end()); - - foreach (const results_tuple& edge, results) { - const commodity_t * u_comm = edge.get<0>(); - const commodity_t * v_comm = edge.get<1>(); - const price_point_t& point(*edge.get<2>()); -#else assert(u_comm == last_target || v_comm == last_target); -#endif bool first_run = false; if (price.is_null()) { |