remove unused code (#1016)

This commit is contained in:
Elliotte Rusty Harold 2023-02-26 13:27:58 -05:00 committed by GitHub
parent 22d2b47c04
commit 85ac42dbd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -27,7 +27,6 @@
import org.apache.maven.api.xml.XmlNode;
import org.apache.maven.internal.xml.XmlNodeImpl;
import org.codehaus.plexus.util.StringUtils;
import org.codehaus.plexus.util.xml.pull.XmlSerializer;
/**
@ -36,8 +35,6 @@
public class Xpp3Dom implements Serializable {
private static final String[] EMPTY_STRING_ARRAY = new String[0];
private static final Xpp3Dom[] EMPTY_DOM_ARRAY = new Xpp3Dom[0];
public static final String CHILDREN_COMBINATION_MODE_ATTRIBUTE = "combine.children";
public static final String CHILDREN_COMBINATION_MERGE = "merge";
@ -157,7 +154,7 @@ public String getAttribute(String name) {
* @since 3.4.0
*/
public boolean removeAttribute(String name) {
if (!StringUtils.isEmpty(name)) {
if (name != null && !name.isEmpty()) {
Map<String, String> attrs = new HashMap<>(dom.getAttributes());
boolean ret = attrs.remove(name) != null;
if (ret) {