changeset 1040:3e4949834f3e

remove Buffer.asArray()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 23:04:11 -0600
parents a7319f14ba1e
children 35e3c864d7a7
files src/org/eclipse/jetty/io/AbstractBuffer.java src/org/eclipse/jetty/io/Buffer.java
diffstat 2 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/AbstractBuffer.java	Thu Nov 03 22:55:28 2016 -0600
+++ b/src/org/eclipse/jetty/io/AbstractBuffer.java	Thu Nov 03 23:04:11 2016 -0600
@@ -60,7 +60,7 @@
 		_access = access;
 	}
 
-	public byte[] asArray()
+	private byte[] asArray()
 	{
 		byte[] bytes = new byte[remaining()];
 		byte[] array = array();
--- a/src/org/eclipse/jetty/io/Buffer.java	Thu Nov 03 22:55:28 2016 -0600
+++ b/src/org/eclipse/jetty/io/Buffer.java	Thu Nov 03 23:04:11 2016 -0600
@@ -52,12 +52,6 @@
 	 */
 	byte[] array();
 	
-	/**
-	 * 
-	 * @return a <code>byte[]</code> value of the bytes from the getIndex to the putIndex.
-	 */
-	byte[] asArray();
-	
 	/** 
 	 * Get the underlying buffer. If this buffer wraps a backing buffer.
 	 * @return The root backing buffer or this if there is no backing buffer;