diff src/org/eclipse/jetty/io/BufferUtil.java @ 1021:e350c11242be

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 31 Oct 2016 22:49:25 -0600
parents 6be43ef1eb96
children a8c92b0a08ed
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/BufferUtil.java	Mon Oct 31 22:24:41 2016 -0600
+++ b/src/org/eclipse/jetty/io/BufferUtil.java	Mon Oct 31 22:49:25 2016 -0600
@@ -18,8 +18,6 @@
 
 package org.eclipse.jetty.io;
 
-import org.eclipse.jetty.io.BufferCache.CachedBuffer;
-import org.eclipse.jetty.util.StringUtil;
 
 /* ------------------------------------------------------------------------------- */
 /** Buffer utility methods.
@@ -274,22 +272,5 @@
 		buffer.put((byte)13);
 		buffer.put((byte)10);
 	}
-/*
-	public static boolean isPrefix(Buffer prefix,Buffer buffer)
-	{
-		if (prefix.length()>buffer.length())
-			return false;
-		int bi=buffer.getIndex();
-		for (int i=prefix.getIndex(); i<prefix.putIndex();i++)
-			if (prefix.peek(i)!=buffer.peek(bi++))
-				return false;
-		return true;
-	}
-*/
-	public static String to8859_1_String(Buffer buffer)
-	{
-		if (buffer instanceof CachedBuffer)
-			return buffer.toString();
-		return buffer.toString(StringUtil.__ISO_8859_1_CHARSET);
-	}
+
 }