aboutsummaryrefslogtreecommitdiffstats
path: root/jrt/src/com/yahoo/jrt/Buffer.java
diff options
context:
space:
mode:
Diffstat (limited to 'jrt/src/com/yahoo/jrt/Buffer.java')
-rw-r--r--jrt/src/com/yahoo/jrt/Buffer.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/jrt/src/com/yahoo/jrt/Buffer.java b/jrt/src/com/yahoo/jrt/Buffer.java
index 937666a28ae..06a658740e5 100644
--- a/jrt/src/com/yahoo/jrt/Buffer.java
+++ b/jrt/src/com/yahoo/jrt/Buffer.java
@@ -6,9 +6,6 @@ import java.nio.ByteBuffer;
class Buffer {
-
- static final int MAX_IO = 65000;
-
private ByteBuffer buf;
private int readPos;
private int writePos;
@@ -111,20 +108,4 @@ class Buffer {
ensureFree(minFree);
return buf;
}
-
- public ByteBuffer getChannelReadable() {
- ByteBuffer bb = getReadable();
- if (bb.remaining() > MAX_IO) {
- bb.limit(bb.position() + MAX_IO);
- }
- return bb;
- }
-
- public ByteBuffer getChannelWritable(int minFree) {
- ByteBuffer bb = getWritable(minFree);
- if (bb.remaining() > MAX_IO) {
- bb.limit(bb.position() + MAX_IO);
- }
- return bb;
- }
}