mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +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]
|
[Test]
|
||||||
public void FormatTest()
|
public void FormatTest()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1034,25 +1034,7 @@ namespace ICD.Common.Utils.Xml
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
#region Print
|
||||||
/// 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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Prints the xml document.
|
/// Prints the xml document.
|
||||||
@@ -1089,5 +1071,7 @@ namespace ICD.Common.Utils.Xml
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user