Skip to content

Commit

Permalink
Remove dead code that used the updated method
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperka committed Feb 7, 2019
1 parent 1035e80 commit b1f31c0
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/org/javarosa/xform/util/XFormUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,6 @@ public class XFormUtils {

private static IXFormParserFactory _factory = new XFormParserFactory();

public static IXFormParserFactory setXFormParserFactory(IXFormParserFactory factory) {
IXFormParserFactory oldFactory = _factory;
_factory = factory;
return oldFactory;
}

public static FormDef getFormFromResource (String resource) {
InputStream is = System.class.getResourceAsStream(resource);
if (is == null) {
logger.error("Can't find form resource {}. Is it in the JAR?", resource);
return null;
}

return getFormFromInputStream(is);
}


public static FormDef getFormRaw(InputStreamReader isr) throws XFormParseException, IOException{
return _factory.getXFormParser(isr).parse();
}

/**
* Parses a form with an external secondary instance, and returns a FormDef.
*
Expand Down

0 comments on commit b1f31c0

Please sign in to comment.