mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8193822: Remove unused newDirectByteBuffer and truncate methods from buffer classes
Reviewed-by: alanb, psandoz
This commit is contained in:
parent
bdfda4e19b
commit
52f2eca5d9
2 changed files with 2 additions and 24 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -717,14 +717,6 @@ public abstract class Buffer {
|
|||
public JavaNioAccess.BufferPool getDirectBufferPool() {
|
||||
return Bits.BUFFER_POOL;
|
||||
}
|
||||
@Override
|
||||
public ByteBuffer newDirectByteBuffer(long addr, int cap, Object ob) {
|
||||
return new DirectByteBuffer(addr, cap, ob);
|
||||
}
|
||||
@Override
|
||||
public void truncate(Buffer buf) {
|
||||
buf.truncate();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue