xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eric...@apache.org
Subject cvs commit: xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2 Locale.java
Date Mon, 08 Nov 2004 07:18:41 GMT
ericvas     2004/11/07 23:18:40

  Modified:    v2/src/newstore2/org/apache/xmlbeans/impl/newstore2
                        Locale.java
  Log:
  Remove dead code
  
  Revision  Changes    Path
  1.32      +0 -80     xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Locale.java
  
  Index: Locale.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Locale.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- Locale.java	4 Nov 2004 20:43:54 -0000	1.31
  +++ Locale.java	8 Nov 2004 07:18:40 -0000	1.32
  @@ -1622,86 +1622,6 @@
           return sb;
       }
   
  -//    static final int scrubText(
  -//        Object src, int off, int cch, int wsRule, StringBuffer sb, int state )
  -//    {
  -//        char[] chars = cch < 1024 ? (char[]) tl_scrubBuffer.get() : new char [ cch
];
  -//
  -//        if (chars.length > 1024 && cch < 16384)
  -//            tl_scrubBuffer.set( chars );
  -//
  -//        CharUtil.getChars( chars, 0, src, off, cch );
  -//        
  -//
  -//
  -//        
  -//        throw new RuntimeException( "Not impl" );
  -//        
  -//        assert text != null;
  -//
  -//        if (text._buf == null)
  -//        {
  -//            assert cch == 0;
  -//            assert cp == 0;
  -//            return state;
  -//        }
  -//
  -//        if (cch == 0)
  -//            return state;
  -//
  -//        boolean replace = false;
  -//        boolean collapse = false;
  -//
  -//        switch ( ws )
  -//        {
  -//        case TypeStore.WS_UNSPECIFIED :                            break;
  -//        case TypeStore.WS_PRESERVE    :                            break;
  -//        case TypeStore.WS_REPLACE     :            replace = true; break;
  -//        case TypeStore.WS_COLLAPSE    : collapse = replace = true; break;
  -//
  -//		default : assert false: "Unknown white space rule " +ws;
  -//        }
  -//
  -//        if (!replace && !collapse)
  -//        {
  -//            text.fetch(sb, cp, cch);
  -//            return state;
  -//        }
  -//
  -//        int off = text.unObscure( cp, cch );
  -//        int startpt = 0;
  -//
  -//        for ( int i = 0 ; i < cch ; i++ )
  -//        {
  -//            char ch = text._buf[ off + i ];
  -//
  -//            if (ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t')
  -//            {
  -//                sb.append(text._buf, off + startpt, i - startpt);
  -//                startpt = i + 1;
  -//
  -//                if (collapse)
  -//                {
  -//                    if (state == NOSPACE_STATE)
  -//                        state = SPACE_SEEN_STATE;
  -//                }
  -//                else
  -//                    sb.append(' ');
  -//            }
  -//            else
  -//            {
  -//                if (state == SPACE_SEEN_STATE)
  -//                    sb.append( ' ' );
  -//
  -//                state = NOSPACE_STATE;
  -//            }
  -//        }
  -//
  -//        sb.append( text._buf, off + startpt, cch - startpt );
  -//
  -//        return state;
  -//    }
  -
       static boolean pushToContainer ( Cur c )
       {
           c.push();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org


Mime
View raw message