changeset 1016:8c13b9224cff

remove returnBuffer()
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 24 Oct 2016 01:38:00 -0600
parents 0114d373748e
children d2c3ff33387c
files src/org/eclipse/jetty/http/AbstractGenerator.java src/org/eclipse/jetty/http/HttpParser.java src/org/eclipse/jetty/io/Buffers.java src/org/eclipse/jetty/server/Connector.java
diffstat 4 files changed, 3 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/AbstractGenerator.java	Mon Oct 24 01:26:16 2016 -0600
+++ b/src/org/eclipse/jetty/http/AbstractGenerator.java	Mon Oct 24 01:38:00 2016 -0600
@@ -130,13 +130,11 @@
 	{
 		if (_buffer!=null && _buffer.length()==0)
 		{
-			_buffers.returnBuffer(_buffer);
 			_buffer=null;
 		}
 
 		if (_header!=null && _header.length()==0)
 		{
-			_buffers.returnBuffer(_header);
 			_header=null;
 		}
 	}
--- a/src/org/eclipse/jetty/http/HttpParser.java	Mon Oct 24 01:26:16 2016 -0600
+++ b/src/org/eclipse/jetty/http/HttpParser.java	Mon Oct 24 01:38:00 2016 -0600
@@ -1015,8 +1015,6 @@
 		{
 			if (_buffer==_body)
 				_buffer=_header;
-			if (_buffers!=null)
-				_buffers.returnBuffer(_body);
 			_body=null;
 		}
 
@@ -1024,7 +1022,6 @@
 		{
 			if (_buffer==_header)
 				_buffer=null;
-			_buffers.returnBuffer(_header);
 			_header=null;
 		}
 	}
--- a/src/org/eclipse/jetty/io/Buffers.java	Mon Oct 24 01:26:16 2016 -0600
+++ b/src/org/eclipse/jetty/io/Buffers.java	Mon Oct 24 01:38:00 2016 -0600
@@ -31,6 +31,4 @@
 	Buffer getHeader();
 	Buffer getBuffer();
 	Buffer getBuffer(int size);
-	
-	void returnBuffer(Buffer buffer);
 }
--- a/src/org/eclipse/jetty/server/Connector.java	Mon Oct 24 01:26:16 2016 -0600
+++ b/src/org/eclipse/jetty/server/Connector.java	Mon Oct 24 01:38:00 2016 -0600
@@ -265,20 +265,19 @@
 			this.bufferSize = bufferSize;
 		}
 
+		@Override
 		public Buffer getHeader() {
 			return new IndirectNIOBuffer(headerSize);
 		}
 
+		@Override
 		public Buffer getBuffer() {
 			return newBuffer(bufferSize);
 		}
 
+		@Override
 		public Buffer getBuffer(int size) {
 			return newBuffer(size);
 		}
-		
-		public void returnBuffer(Buffer buffer) {
-			// like I care
-		}
 	}
 }