diff src/org/eclipse/jetty/io/AbstractBuffer.java @ 1027:6d17a257b03f

remove Buffer.asImmutableBuffer()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 02 Nov 2016 23:58:37 -0600
parents 6647dbc8be71
children 4e5e9e3c25b3
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/AbstractBuffer.java	Wed Nov 02 23:52:33 2016 -0600
+++ b/src/org/eclipse/jetty/io/AbstractBuffer.java	Wed Nov 02 23:58:37 2016 -0600
@@ -88,12 +88,6 @@
 		return new ByteArrayBuffer(asArray(), 0, length(), access);
 	}
 	
-	public Buffer asImmutableBuffer()
-	{
-		if (isImmutable()) return this;
-		return duplicate(IMMUTABLE);
-	}
-
 	/*
 	 * @see org.eclipse.util.Buffer#asReadOnlyBuffer()
 	 */