mrglavas 2005/06/08 21:49:40
Modified: java/src/org/apache/xerces/impl/xs XMLSchemaValidator.java
Log:
Removing an unused method and cleaning up unused imports.
Revision Changes Path
1.174 +2 -27
xml-xerces/java/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
Index: XMLSchemaValidator.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -r1.173 -r1.174
--- XMLSchemaValidator.java 9 Jun 2005 04:48:32 -0000 1.173
+++ XMLSchemaValidator.java 9 Jun 2005 04:49:40 -0000 1.174
@@ -43,7 +43,6 @@
import org.apache.xerces.impl.xs.models.CMBuilder;
import org.apache.xerces.impl.xs.models.CMNodeFactory;
import org.apache.xerces.impl.xs.models.XSCMValidator;
-import org.apache.xerces.impl.xs.util.ShortListImpl;
import org.apache.xerces.util.AugmentationsImpl;
import org.apache.xerces.util.IntStack;
import org.apache.xerces.util.SymbolTable;
@@ -3188,31 +3187,7 @@
/** Other types. */
return valueType;
}
-
- private ShortList convertToPrimitiveKind(ShortList itemValueType) {
- if (itemValueType != null) {
- int i;
- final int length = itemValueType.getLength();
- for (i = 0; i < length; ++i) {
- short type = itemValueType.item(i);
- if (type != convertToPrimitiveKind(type)) {
- break;
- }
- }
- if (i != length) {
- final short [] arr = new short[length];
- for (int j = 0; j < i; ++j) {
- arr[j] = itemValueType.item(j);
- }
- for(; i < length; ++i) {
- arr[i] = convertToPrimitiveKind(itemValueType.item(i));
- }
- return new ShortListImpl(arr, arr.length);
- }
- }
- return itemValueType;
- }
-
+
private String expectedStr(Vector expected) {
StringBuffer ret = new StringBuffer("{");
int size = expected.size();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]