diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-04-19 10:22:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 10:22:43 +0200 |
commit | 1a5fba25987c8f44a0fdcf8219d9243a3d04dda2 (patch) | |
tree | 9ddc6177529da531c4c25852f2ca88adde7740f3 /src/history.cc | |
parent | bd510c2e5f6269b4112f032d2a9e1d7665e4fd74 (diff) | |
parent | d2de65d7d8b366bc3a6291831e7a1090e2e940a4 (diff) | |
download | fork-ledger-1a5fba25987c8f44a0fdcf8219d9243a3d04dda2.tar.gz fork-ledger-1a5fba25987c8f44a0fdcf8219d9243a3d04dda2.tar.bz2 fork-ledger-1a5fba25987c8f44a0fdcf8219d9243a3d04dda2.zip |
Merge pull request #2238 from afh/cleanup-system-defines
Cleanup system defines
Diffstat (limited to 'src/history.cc')
-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 5dc56b89..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 defined(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 defined(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()) { |