--- /home/cpdev/src/classpath/gnu/xml/xpath/Selector.java	2005-07-10 05:32:36.000000000 +0000
+++ gnu/xml/xpath/Selector.java	2005-06-30 05:34:23.000000000 +0000
@@ -44,7 +44,6 @@
 import java.util.List;
 import java.util.Set;
 import javax.xml.XMLConstants;
-import javax.xml.namespace.QName;
 import org.w3c.dom.Attr;
 import org.w3c.dom.NamedNodeMap;
 import org.w3c.dom.Node;
@@ -425,18 +424,6 @@
     return new Selector(axis, tests2);
   }
 
-  public boolean references(QName var)
-  {
-    for (int i = 0; i < tests.length; i++)
-      {
-        if (tests[i].references(var))
-          {
-            return true;
-          }
-      }
-    return false;
-  }
-
   public String toString()
   {
     StringBuffer buf = new StringBuffer();
@@ -449,15 +436,7 @@
         buf.append("ancestor-or-self::");
         break;
       case ATTRIBUTE:
-        if (tests.length == 0 ||
-            (tests[0] instanceof NameTest))
-          {
-            buf.append('@');
-          }
-        else
-          {
-            buf.append("attribute::");
-          }
+        buf.append("attribute::");
         break;
       case CHILD:
         //buf.append("child::");
