diff src/org/eclipse/jetty/io/AbstractBuffer.java @ 1026:6647dbc8be71

remove Buffer.CaseInsensitve
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 02 Nov 2016 23:52:33 -0600
parents 6be43ef1eb96
children 6d17a257b03f
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/AbstractBuffer.java	Wed Nov 02 23:46:43 2016 -0600
+++ b/src/org/eclipse/jetty/io/AbstractBuffer.java	Wed Nov 02 23:52:33 2016 -0600
@@ -85,11 +85,7 @@
 
 	private ByteArrayBuffer duplicate(int access)
 	{
-		Buffer b=this.buffer();
-		if (this instanceof Buffer.CaseInsensitve || b instanceof Buffer.CaseInsensitve)
-			return new ByteArrayBuffer.CaseInsensitive(asArray(), 0, length(),access);
-		else
-			return new ByteArrayBuffer(asArray(), 0, length(), access);
+		return new ByteArrayBuffer(asArray(), 0, length(), access);
 	}
 	
 	public Buffer asImmutableBuffer()
@@ -150,9 +146,6 @@
 		if (obj == null || !(obj instanceof Buffer)) return false;
 		Buffer b = (Buffer) obj;
 
-		if (this instanceof Buffer.CaseInsensitve ||  b instanceof Buffer.CaseInsensitve)
-			return equalsIgnoreCase(b);
-		
 		// reject different lengths
 		if (b.length() != length()) return false;