Skip to content

Commit 3b0409b

Browse files
author
Vincent Potucek
committed
Remove unused DefaultPluginXmlFactory#fromXml/toXml
1 parent 6019307 commit 3b0409b

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPluginXmlFactory.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -100,28 +100,4 @@ public void write(XmlWriterRequest<PluginDescriptor> request) throws XmlWriterEx
100100
throw new XmlWriterException("Unable to write plugin: " + getMessage(e), getLocation(e), e);
101101
}
102102
}
103-
104-
/**
105-
* Simply parse the given xml string.
106-
*
107-
* @param xml the input XML string
108-
* @return the parsed object
109-
* @throws XmlReaderException if an error occurs during the parsing
110-
* @see #toXmlString(Object)
111-
*/
112-
public static PluginDescriptor fromXml(@Nonnull String xml) throws XmlReaderException {
113-
return new DefaultPluginXmlFactory().fromXmlString(xml);
114-
}
115-
116-
/**
117-
* Simply converts the given content to an XML string.
118-
*
119-
* @param content the object to convert
120-
* @return the XML string representation
121-
* @throws XmlWriterException if an error occurs during the transformation
122-
* @see #fromXmlString(String)
123-
*/
124-
public static String toXml(@Nonnull PluginDescriptor content) throws XmlWriterException {
125-
return new DefaultPluginXmlFactory().toXmlString(content);
126-
}
127103
}

0 commit comments

Comments
 (0)