diff src/org/eclipse/jetty/io/AbstractBuffer.java @ 1039:a7319f14ba1e

remove Buffer.isImmutable()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 22:55:28 -0600
parents b71ad168fe34
children 3e4949834f3e
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/AbstractBuffer.java	Thu Nov 03 22:16:11 2016 -0600
+++ b/src/org/eclipse/jetty/io/AbstractBuffer.java	Thu Nov 03 22:55:28 2016 -0600
@@ -39,7 +39,7 @@
 	
 	protected final static String __READONLY = "READONLY";
 	
-	protected int _access;
+	int _access;
 
 	protected int _get;
 	protected int _put;
@@ -47,13 +47,12 @@
 	protected int _hashGet;
 	protected int _hashPut;
 	protected int _mark;
-	protected String _string;
 	protected View _view;
 
 	/**
 	 * Constructor for BufferView
 	 * 
-	 * @param access 0==IMMUTABLE, 1==READONLY, 2==READWRITE
+	 * @param access 1==READONLY, 2==READWRITE
 	 */
 	protected AbstractBuffer(int access)
 	{
@@ -212,11 +211,6 @@
 		return _hash;
 	}
 
-	public boolean isImmutable()
-	{
-		return _access <= IMMUTABLE;
-	}
-
 	public boolean isReadOnly()
 	{
 		return _access <= READONLY;
@@ -470,15 +464,6 @@
 	@Override
 	public String toString()
 	{
-/*
-		if (isImmutable())
-		{
-			if (_string == null) 
-				_string = new String(asArray(), 0, remaining());
-			return _string;
-		}
-		return new String(asArray(), 0, remaining());
-*/
 		return toString("ISO-8859-1");
 	}