Allon Mureinik has uploaded a new change for review. Change subject: core: Cleanup XmlUtils ......................................................................
core: Cleanup XmlUtils Remove commented-out code from XmlUtils. Change-Id: Ica7575d2c36f381a60a1e038a087f1e54f05be54 Signed-off-by: Allon Mureinik <[email protected]> --- M backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/XmlUtils.java 1 file changed, 0 insertions(+), 70 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/02/21602/1 diff --git a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/XmlUtils.java b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/XmlUtils.java index c580f0e..ad12f4c 100644 --- a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/XmlUtils.java +++ b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/XmlUtils.java @@ -14,76 +14,6 @@ public class XmlUtils { /** - * Gets the node Attribute value using XPath. - * - * @param doc - * The doc. - * @param xPath - * The x path pattern to the node. - * @param attribute - * The attribute name. - * @param error - * The error string (if occured). - * @return - */ - // public static String GetNodeAttributeValue(XmlDocument doc, String xPath, - // String attribute, RefObject<String> error) - // { - // throw new NotImplementedException() ; - // String value = ""; - // error.argvalue = ""; - // - // try - // { - // XmlNode node = doc.SelectSingleNode(xPath); - // if (node != null) - // { - // value = node.attributes[attribute].getValue(); - // } - // } - // catch (RuntimeException ex) - // { - // error.argvalue = ex.getMessage(); - // } - // return value; - // } - - /** - * Sets the node Attribute value using XPath. - * - * @param doc - * The doc. - * @param xPath - * The x path pattern to the node. - * @param attribute - * The attribute name. - * @param value - * The value. - * @param error - * The error string (if occured). - */ - // public static void SetNodeAttributeValue(XmlDocument doc, String xPath, - // String attribute, String value, RefObject<String> error) - // { - // throw new NotImplementedException() ; - // error.argvalue = ""; - // try - // { - // XmlNode node = doc.SelectSingleNode(xPath); - // if (node != null) - // { - // node.attributes[attribute].setValue(value); - // } - // } - // catch (RuntimeException ex) - // { - // String.format("Unable to update certificate finger print in %1$s/[%2$s\n]", - // xPath, attribute); - // error.argvalue += ex.getMessage(); - // } - // } - - /** * Load the xml document using the xml string * @param xmlString * The xml string value -- To view, visit http://gerrit.ovirt.org/21602 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ica7575d2c36f381a60a1e038a087f1e54f05be54 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
