diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-04-19 08:56:41 +0200 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2023-04-19 08:56:41 +0200 |
commit | d2de65d7d8b366bc3a6291831e7a1090e2e940a4 (patch) | |
tree | e777bcafb13452336864cc2e3272dc2846870486 | |
parent | c5340f10630533d01c9703c8f19b4799700d3a52 (diff) | |
download | fork-ledger-d2de65d7d8b366bc3a6291831e7a1090e2e940a4.tar.gz fork-ledger-d2de65d7d8b366bc3a6291831e7a1090e2e940a4.tar.bz2 fork-ledger-d2de65d7d8b366bc3a6291831e7a1090e2e940a4.zip |
Remove unused REVERSE_PREDECESSOR_MAP guarded code
-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()) { |