Mercurial Hosting > luan
changeset 1027:6d17a257b03f
remove Buffer.asImmutableBuffer()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 02 Nov 2016 23:58:37 -0600 |
parents | 6647dbc8be71 |
children | 2ea54e6117c3 |
files | src/org/eclipse/jetty/io/AbstractBuffer.java src/org/eclipse/jetty/io/Buffer.java |
diffstat | 2 files changed, 0 insertions(+), 14 deletions(-) [+] |
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() */
--- a/src/org/eclipse/jetty/io/Buffer.java Wed Nov 02 23:52:33 2016 -0600 +++ b/src/org/eclipse/jetty/io/Buffer.java Wed Nov 02 23:58:37 2016 -0600 @@ -74,12 +74,6 @@ Buffer asReadOnlyBuffer(); /** - * - * @return an immutable version of this <code>Buffer</code>. - */ - Buffer asImmutableBuffer(); - - /** * * The capacity of the buffer. This is the maximum putIndex that may be set. * @return an <code>int</code> value @@ -345,10 +339,8 @@ int readFrom(InputStream in, int max) throws IOException; - /* ------------------------------------------------------------ */ String toString(String charset); - /* ------------------------------------------------------------ */ String toString(Charset charset); }