Merge branch 'ref/remove-unused-code' into 'master'
Ref: remove unused code See merge request sheepitrenderfarm/client!250
This commit is contained in:
@@ -217,21 +217,6 @@ public class Utils {
|
||||
return max;
|
||||
}
|
||||
|
||||
public static ServerCode statusIsOK(Document document_, String rootname_) {
|
||||
if (document_ == null) {
|
||||
return Error.ServerCode.UNKNOWN;
|
||||
}
|
||||
NodeList ns = document_.getElementsByTagName(rootname_);
|
||||
if (ns.getLength() == 0) {
|
||||
return Error.ServerCode.ERROR_NO_ROOT;
|
||||
}
|
||||
Element a_node = (Element) ns.item(0);
|
||||
if (a_node.hasAttribute("status")) {
|
||||
return Error.ServerCode.fromInt(Integer.parseInt(a_node.getAttribute("status")));
|
||||
}
|
||||
return Error.ServerCode.UNKNOWN;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a file or directory recursively
|
||||
* @param file The filesystem element to be deleted
|
||||
|
||||
Reference in New Issue
Block a user