Skip to content

Commit 1032573

Browse files
committed
Remove hasMeshes / hasParticles logic
1 parent 317cc0f commit 1032573

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/Iteration.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -589,29 +589,6 @@ void Iteration::read_impl(std::string const &groupPath)
589589

590590
Parameter<Operation::LIST_PATHS> pList;
591591
IOHandler()->enqueue(IOTask(this, pList));
592-
auto version = IOHandler()->m_standard;
593-
bool hasMeshes = false;
594-
bool hasParticles = false;
595-
if (version <= OpenpmdStandard::v_1_0_1)
596-
{
597-
IOHandler()->enqueue(IOTask(this, pList));
598-
IOHandler()->flush(internal::defaultFlushParams);
599-
hasMeshes = std::count(
600-
pList.paths->begin(),
601-
pList.paths->end(),
602-
auxiliary::replace_last(s.meshesPath(), "/", "")) == 1;
603-
hasParticles =
604-
std::count(
605-
pList.paths->begin(),
606-
pList.paths->end(),
607-
auxiliary::replace_last(s.particlesPath(), "/", "")) == 1;
608-
pList.paths->clear();
609-
}
610-
else
611-
{
612-
hasMeshes = s.containsAttribute("meshesPath");
613-
hasParticles = s.containsAttribute("particlesPath");
614-
}
615592

616593
// @todo restore compatibility with openPMD 1.0.*:
617594
// hasMeshes <-> meshesPath is defined

0 commit comments

Comments
 (0)