mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove XmlChangeVisitor and a bunch of related dead code
This commit is contained in:
@@ -18,7 +18,6 @@ package com.intellij.pom.xml.impl.events;
|
||||
import com.intellij.pom.PomModel;
|
||||
import com.intellij.pom.event.PomModelEvent;
|
||||
import com.intellij.pom.xml.XmlAspect;
|
||||
import com.intellij.pom.xml.XmlChangeVisitor;
|
||||
import com.intellij.pom.xml.events.XmlAttributeSet;
|
||||
import com.intellij.pom.xml.impl.XmlAspectChangeSetImpl;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
@@ -60,8 +59,4 @@ public class XmlAttributeSetImpl implements XmlAttributeSet {
|
||||
public String toString() {
|
||||
return "Attribute \"" + getName() + "\" for tag \"" + getTag().getName() + "\" set to \"" + getValue() + "\"";
|
||||
}
|
||||
|
||||
public void accept(XmlChangeVisitor visitor) {
|
||||
visitor.visitXmlAttributeSet(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ package com.intellij.pom.xml.impl.events;
|
||||
import com.intellij.pom.PomModel;
|
||||
import com.intellij.pom.event.PomModelEvent;
|
||||
import com.intellij.pom.xml.XmlAspect;
|
||||
import com.intellij.pom.xml.XmlChangeVisitor;
|
||||
import com.intellij.pom.xml.events.XmlDocumentChanged;
|
||||
import com.intellij.pom.xml.impl.XmlAspectChangeSetImpl;
|
||||
import com.intellij.psi.xml.XmlDocument;
|
||||
@@ -48,8 +47,4 @@ public class XmlDocumentChangedImpl implements XmlDocumentChanged {
|
||||
public String toString() {
|
||||
return "Xml document changed";
|
||||
}
|
||||
|
||||
public void accept(XmlChangeVisitor visitor) {
|
||||
visitor.visitDocumentChanged(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.intellij.pom.xml.impl.events;
|
||||
|
||||
import com.intellij.pom.xml.XmlChangeVisitor;
|
||||
import com.intellij.pom.xml.events.XmlElementChanged;
|
||||
import com.intellij.psi.xml.XmlElement;
|
||||
|
||||
@@ -30,10 +29,6 @@ public class XmlElementChangedImpl implements XmlElementChanged {
|
||||
return myElement;
|
||||
}
|
||||
|
||||
public void accept(XmlChangeVisitor visitor) {
|
||||
visitor.visitXmlElementChanged(this);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "Xml element changed: " + myElement;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.intellij.pom.xml.impl.events;
|
||||
|
||||
import com.intellij.pom.xml.XmlChangeVisitor;
|
||||
import com.intellij.pom.xml.events.XmlTagChildAdd;
|
||||
import com.intellij.psi.xml.XmlTag;
|
||||
import com.intellij.psi.xml.XmlTagChild;
|
||||
@@ -40,8 +39,4 @@ public class XmlTagChildAddImpl implements XmlTagChildAdd {
|
||||
public String toString() {
|
||||
return "child added to " + getTag().getName() + " child: " + myChild.toString();
|
||||
}
|
||||
|
||||
public void accept(XmlChangeVisitor visitor) {
|
||||
visitor.visitXmlTagChildAdd(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,11 +18,8 @@ package com.intellij.pom.xml.impl.events;
|
||||
import com.intellij.pom.PomModel;
|
||||
import com.intellij.pom.event.PomModelEvent;
|
||||
import com.intellij.pom.xml.XmlAspect;
|
||||
import com.intellij.pom.xml.XmlChangeVisitor;
|
||||
import com.intellij.pom.xml.events.XmlChange;
|
||||
import com.intellij.pom.xml.events.XmlTagChildChanged;
|
||||
import com.intellij.pom.xml.impl.XmlAspectChangeSetImpl;
|
||||
import com.intellij.pom.xml.XmlChangeVisitor;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
import com.intellij.psi.xml.XmlFile;
|
||||
import com.intellij.psi.xml.XmlTag;
|
||||
@@ -55,8 +52,4 @@ public class XmlTagChildChangedImpl implements XmlTagChildChanged {
|
||||
public String toString() {
|
||||
return "child changed in " + getTag().getName() + " child: " + myChild.toString();
|
||||
}
|
||||
|
||||
public void accept(XmlChangeVisitor visitor) {
|
||||
visitor.visitXmlTagChildChanged(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.intellij.pom.xml.impl.events;
|
||||
|
||||
import com.intellij.pom.xml.XmlChangeVisitor;
|
||||
import com.intellij.pom.xml.events.XmlTagChildRemoved;
|
||||
import com.intellij.psi.xml.XmlTag;
|
||||
import com.intellij.psi.xml.XmlTagChild;
|
||||
@@ -40,8 +39,4 @@ public class XmlTagChildRemovedImpl implements XmlTagChildRemoved {
|
||||
public String toString() {
|
||||
return "child removed from " + getTag().getName() + " child: " + myChild.toString();
|
||||
}
|
||||
|
||||
public void accept(XmlChangeVisitor visitor) {
|
||||
visitor.visitXmlTagChildRemoved(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ import com.intellij.pom.PomModel;
|
||||
import com.intellij.pom.event.PomModelEvent;
|
||||
import com.intellij.pom.xml.XmlAspect;
|
||||
import com.intellij.pom.xml.impl.XmlAspectChangeSetImpl;
|
||||
import com.intellij.pom.xml.XmlChangeVisitor;
|
||||
import com.intellij.pom.xml.events.XmlTagNameChanged;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
import com.intellij.psi.xml.XmlFile;
|
||||
@@ -54,8 +53,4 @@ public class XmlTagNameChangedImpl implements XmlTagNameChanged {
|
||||
public String toString() {
|
||||
return "tag name changed to " + getTag().getName() + " was: " + getOldName();
|
||||
}
|
||||
|
||||
public void accept(XmlChangeVisitor visitor) {
|
||||
visitor.visitXmlTagNameChanged(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,10 +19,8 @@ import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.pom.PomModel;
|
||||
import com.intellij.pom.event.PomModelEvent;
|
||||
import com.intellij.pom.xml.XmlAspect;
|
||||
import com.intellij.pom.xml.events.XmlChange;
|
||||
import com.intellij.pom.xml.events.XmlTextChanged;
|
||||
import com.intellij.pom.xml.impl.XmlAspectChangeSetImpl;
|
||||
import com.intellij.pom.xml.XmlChangeVisitor;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
import com.intellij.psi.xml.XmlFile;
|
||||
import com.intellij.psi.xml.XmlText;
|
||||
@@ -56,8 +54,4 @@ public class XmlTextChangedImpl implements XmlTextChanged {
|
||||
return "text changed to '" + StringUtil.escapeStringCharacters(myText.getValue()) + "' was: '"
|
||||
+ StringUtil.escapeStringCharacters(myOldText) + "'";
|
||||
}
|
||||
|
||||
public void accept(XmlChangeVisitor visitor) {
|
||||
visitor.visitXmlTextChanged(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.intellij.pom.xml;
|
||||
|
||||
import com.intellij.pom.xml.events.*;
|
||||
|
||||
/**
|
||||
* @author peter
|
||||
*/
|
||||
@Deprecated
|
||||
public interface XmlChangeVisitor {
|
||||
void visitXmlAttributeSet(final XmlAttributeSet xmlAttributeSet);
|
||||
|
||||
void visitDocumentChanged(final XmlDocumentChanged xmlDocumentChanged);
|
||||
|
||||
void visitXmlElementChanged(final XmlElementChanged xmlElementChanged);
|
||||
|
||||
void visitXmlTagChildAdd(final XmlTagChildAdd xmlTagChildAdd);
|
||||
|
||||
void visitXmlTagChildChanged(final XmlTagChildChanged xmlTagChildChanged);
|
||||
|
||||
void visitXmlTagChildRemoved(final XmlTagChildRemoved xmlTagChildRemoved);
|
||||
|
||||
void visitXmlTagNameChanged(final XmlTagNameChanged xmlTagNameChanged);
|
||||
|
||||
void visitXmlTextChanged(final XmlTextChanged xmlTextChanged);
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.pom.xml;
|
||||
|
||||
import com.intellij.pom.xml.events.*;
|
||||
|
||||
public class XmlChangeVisitorBase implements XmlChangeVisitor{
|
||||
public void visitXmlAttributeSet(final XmlAttributeSet xmlAttributeSet) {
|
||||
|
||||
}
|
||||
|
||||
public void visitDocumentChanged(final XmlDocumentChanged xmlDocumentChanged) {
|
||||
|
||||
}
|
||||
|
||||
public void visitXmlElementChanged(final XmlElementChanged xmlElementChanged) {
|
||||
|
||||
}
|
||||
|
||||
public void visitXmlTagChildAdd(final XmlTagChildAdd xmlTagChildAdd) {
|
||||
|
||||
}
|
||||
|
||||
public void visitXmlTagChildChanged(final XmlTagChildChanged xmlTagChildChanged) {
|
||||
|
||||
}
|
||||
|
||||
public void visitXmlTagChildRemoved(final XmlTagChildRemoved xmlTagChildRemoved) {
|
||||
|
||||
}
|
||||
|
||||
public void visitXmlTagNameChanged(final XmlTagNameChanged xmlTagNameChanged) {
|
||||
|
||||
}
|
||||
|
||||
public void visitXmlTextChanged(final XmlTextChanged xmlTextChanged) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -15,10 +15,5 @@
|
||||
*/
|
||||
package com.intellij.pom.xml.events;
|
||||
|
||||
import com.intellij.pom.xml.XmlChangeVisitor;
|
||||
|
||||
|
||||
public interface XmlChange {
|
||||
@Deprecated
|
||||
void accept(XmlChangeVisitor visitor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user