Ref: remove unused code

This commit is contained in:
Laurent Clouet
2023-10-01 18:17:12 +02:00
parent eb997b0036
commit 9f4f91f14c

View File

@@ -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