diff src/org/eclipse/jetty/io/JBuffer.java @ 1052:4a2489f1d5fe

remove JBuffer.peek()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 08 Nov 2016 00:27:16 -0700
parents 1ab2dd0a7db5
children 7e4b41247544
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/JBuffer.java	Tue Nov 08 00:18:45 2016 -0700
+++ b/src/org/eclipse/jetty/io/JBuffer.java	Tue Nov 08 00:27:16 2016 -0700
@@ -210,19 +210,9 @@
 		pokeBuffer(index).put(b);
 	}
 
-	private JBuffer peekBuffer(int index) {
-		JBuffer dup = duplicate();
-		dup.setGetIndex(index);
-		dup.setPutIndex(dup.capacity());
-		return dup;
-	}
 
-	public byte peek(int index) {
+	public byte get(int index) {
 		return bb.get(index);
 	}
 
-	public byte peek() {
-		return peek(bb.position());
-	}
-
 }