mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-08 01:05:01 +00:00
refactor: Removing unused code
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user