luetzkendorf    2004/12/07 09:51:39

  Modified:    src/share/org/apache/slide/search/basic QueryTree.java
  Log:
  remove unused code
  
  Revision  Changes    Path
  1.6       +8 -10     
jakarta-slide/src/share/org/apache/slide/search/basic/QueryTree.java
  
  Index: QueryTree.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/share/org/apache/slide/search/basic/QueryTree.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- QueryTree.java    1 Nov 2004 17:58:02 -0000       1.5
  +++ QueryTree.java    7 Dec 2004 17:51:39 -0000       1.6
  @@ -131,7 +131,7 @@
        */
       public int relativeDepth (Scope scope) {
           TokenizedScope tScope = new TokenizedScope (scope);
  -        boolean contains = allQueryTreeNodes.contains (tScope);
  +        //boolean contains = allQueryTreeNodes.contains (tScope);
           
           return tScope.depth - topNode.depth;
       }
  @@ -155,14 +155,12 @@
        *
        **/
       class TokenizedScope {
  -        private int depth;
  +        int depth;
           Scope scope;
           
           TokenizedScope (Scope   scope) {
               this.scope = scope;
  -            StringTokenizer st = new StringTokenizer (scope.toString(), "/");
  -            int noOfTokens = st.countTokens();
  -            depth = noOfTokens;
  +            depth = (new StringTokenizer (scope.toString(), 
"/")).countTokens();
           }
           
           /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to