From 7c3a7bbc1e43145883c5af45e3f239e873d27ef9 Mon Sep 17 00:00:00 2001 From: Alejandro Gallo Date: Tue, 5 Oct 2021 16:51:32 +0200 Subject: [PATCH] Remove useless function print_slices --- atrip.org | 18 +----------------- src/atrip/Atrip.cxx | 18 +----------------- 2 files changed, 2 insertions(+), 34 deletions(-) diff --git a/atrip.org b/atrip.org index 9840163..baf8a02 100644 --- a/atrip.org +++ b/atrip.org @@ -2300,23 +2300,7 @@ Atrip::Output Atrip::run(Atrip::Input const& in) { energy += tupleEnergy; -#ifdef HAVE_OCD - auto const print_slices - = [](ABCTuple const& abc, ABCTuple const& want, SliceUnion& u) { - if (abc != want) return; - - for (auto type: u.sliceTypes) { - auto const& ptr = u.unwrapSlice(type, abc); - auto const& slice = Slice::findByTypeAbc(u.slices, type, abc); - WITH_RANK << "__print_slice__:n" << u.name << " " - << pretty_print(abc) << " " - << pretty_print(slice.info) - ; - for (size_t i = 0; i < 20; i++) std::cout << ptr[i] << ", "; - std::cout << std::endl; - } - }; -#endif + } if (isFakeTuple(i)) { // fake iterations should also unwrap whatever they got diff --git a/src/atrip/Atrip.cxx b/src/atrip/Atrip.cxx index c1c3b73..450b177 100644 --- a/src/atrip/Atrip.cxx +++ b/src/atrip/Atrip.cxx @@ -426,23 +426,7 @@ Atrip::Output Atrip::run(Atrip::Input const& in) { energy += tupleEnergy; -#ifdef HAVE_OCD - auto const print_slices - = [](ABCTuple const& abc, ABCTuple const& want, SliceUnion& u) { - if (abc != want) return; - - for (auto type: u.sliceTypes) { - auto const& ptr = u.unwrapSlice(type, abc); - auto const& slice = Slice::findByTypeAbc(u.slices, type, abc); - WITH_RANK << "__print_slice__:n" << u.name << " " - << pretty_print(abc) << " " - << pretty_print(slice.info) - ; - for (size_t i = 0; i < 20; i++) std::cout << ptr[i] << ", "; - std::cout << std::endl; - } - }; -#endif + } if (isFakeTuple(i)) { // fake iterations should also unwrap whatever they got