mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 04:35:00 +00:00
refactor: Removing unused code
This commit is contained in:
@@ -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