Remove useless function print_slices

This commit is contained in:
Alejandro Gallo 2021-10-05 16:51:32 +02:00
parent 0a861618fd
commit 7c3a7bbc1e
2 changed files with 2 additions and 34 deletions

View File

@ -2300,23 +2300,7 @@ Atrip::Output Atrip::run(Atrip::Input const& in) {
energy += tupleEnergy; 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)) { if (isFakeTuple(i)) {
// fake iterations should also unwrap whatever they got // fake iterations should also unwrap whatever they got

View File

@ -426,23 +426,7 @@ Atrip::Output Atrip::run(Atrip::Input const& in) {
energy += tupleEnergy; 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)) { if (isFakeTuple(i)) {
// fake iterations should also unwrap whatever they got // fake iterations should also unwrap whatever they got