refactor: Removing unused code

This commit is contained in:
Chris Cameron
2018-10-29 13:41:30 -04:00
parent 7e8618d3e5
commit 24e665de84
2 changed files with 3 additions and 26 deletions

View File

@@ -177,13 +177,6 @@ namespace ICD.Common.Utils.Tests.Xml
}
}
[Test, UsedImplicitly]
public void IsValidXmlTest()
{
Assert.IsFalse(XmlUtils.IsValidXml(@"<Foo></Bar>"));
Assert.IsTrue(XmlUtils.IsValidXml(EXAMPLE_XML));
}
[Test]
public void FormatTest()
{

View File

@@ -1034,25 +1034,7 @@ namespace ICD.Common.Utils.Xml
#endregion
/// <summary>
/// Returns true if the given xml is valid.
/// </summary>
/// <param name="xml"></param>
/// <returns></returns>
[PublicAPI]
public static bool IsValidXml(string xml)
{
try
{
IcdXmlDocument document = new IcdXmlDocument();
document.LoadXml(xml);
return true;
}
catch (IcdXmlException)
{
return false;
}
}
#region Print
/// <summary>
/// Prints the xml document.
@@ -1089,5 +1071,7 @@ namespace ICD.Common.Utils.Xml
}
}
}
#endregion
}
}