void () { doUnusedDeclarationTest(""" <schema:schema\s xmlns:schema="http://www.w3.org/2001/XMLSchema" <warning descr="Namespace declaration is never used">xmlns="http://www.w3.org/2001/X<caret>Include"</warning> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <warning descr="Namespace location is never used">xsi:noNamespaceSchemaLocation="http://www.w3.org/2001/XInclude"</warning>> </schema:schema>""", """ <schema:schema xmlns:schema="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > </schema:schema>""", XmlAnalysisBundle.message("xml.quickfix.remove.unused.namespace.decl"), false); doOptimizeImportsTest(""" <schema:schema\s xmlns:schema="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > </schema:schema>"""); }