Ref: remove unused code
This commit is contained in:
@@ -217,21 +217,6 @@ public class Utils {
|
|||||||
return max;
|
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
|
* Deletes a file or directory recursively
|
||||||
* @param file The filesystem element to be deleted
|
* @param file The filesystem element to be deleted
|
||||||
|
|||||||
Reference in New Issue
Block a user