diff --git a/src/main/java/org/commcare/data/xml/DataModelPullParser.java b/src/main/java/org/commcare/data/xml/DataModelPullParser.java index 7b2a1979d4..d76f26e0d2 100644 --- a/src/main/java/org/commcare/data/xml/DataModelPullParser.java +++ b/src/main/java/org/commcare/data/xml/DataModelPullParser.java @@ -10,7 +10,6 @@ import java.io.IOException; import java.io.InputStream; import java.util.LinkedHashSet; -import java.util.List; import java.util.Vector; /** @@ -29,14 +28,13 @@ public class DataModelPullParser extends ElementParser { private final InputStream is; private final String requiredRootEnvelope = null; private final CommCareOTARestoreListener rListener; - private List blocksToSkipParsing; public DataModelPullParser(InputStream is, TransactionParserFactory factory) throws InvalidStructureException, IOException { this(is, factory, false); } public DataModelPullParser(InputStream is, TransactionParserFactory factory, CommCareOTARestoreListener rl) throws InvalidStructureException, IOException { - this(is, factory, false, false, rl, null); + this(is, factory, false, false, rl); } public DataModelPullParser(InputStream is, TransactionParserFactory factory, boolean deep) throws InvalidStructureException, IOException { @@ -44,10 +42,10 @@ public DataModelPullParser(InputStream is, TransactionParserFactory factory, boo } public DataModelPullParser(InputStream is, TransactionParserFactory factory, boolean failfast, boolean deep) throws InvalidStructureException, IOException { - this(is, factory, failfast, deep, null, null); + this(is, factory, failfast, deep, null); } - public DataModelPullParser(InputStream is, TransactionParserFactory factory, boolean failfast, boolean deep, CommCareOTARestoreListener rListener, List blocksToSkipParsing) throws InvalidStructureException, IOException { + public DataModelPullParser(InputStream is, TransactionParserFactory factory, boolean failfast, boolean deep, CommCareOTARestoreListener rListener) throws InvalidStructureException, IOException { super(ElementParser.instantiateParser(is)); this.is = is; this.failfast = failfast; @@ -55,7 +53,6 @@ public DataModelPullParser(InputStream is, TransactionParserFactory factory, boo errors = new Vector<>(); this.deep = deep; this.rListener = rListener; - this.blocksToSkipParsing = blocksToSkipParsing; } @Override @@ -129,11 +126,6 @@ private void parseBlock(String root, LinkedHashSet parsers) t continue; } - if (blocksToSkipParsing != null && blocksToSkipParsing.contains(name)) { - this.skipBlock(name); - continue; - } - TransactionParser transaction = factory.getParser(parser); if (transaction == null) { if (deep) {