summaryrefslogtreecommitdiffstats
path: root/luni
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-03-29 14:46:28 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-03-29 14:46:29 +0000
commit6ebe24c3dccddf8d00e50f587364797ee21eb4dd (patch)
tree2520cffadc060ba9d6f5f084395efeed76217fa1 /luni
parent79ad93083df32b073a1862ddf797b78a296cd809 (diff)
parentdb23ba7b94acccfad73456c06a507295a7896a90 (diff)
downloadlibcore-6ebe24c3dccddf8d00e50f587364797ee21eb4dd.zip
libcore-6ebe24c3dccddf8d00e50f587364797ee21eb4dd.tar.gz
libcore-6ebe24c3dccddf8d00e50f587364797ee21eb4dd.tar.bz2
Merge "Remove dead NioUtils.getDirectBufferAddress."
Diffstat (limited to 'luni')
-rw-r--r--luni/src/main/java/java/nio/NioUtils.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/luni/src/main/java/java/nio/NioUtils.java b/luni/src/main/java/java/nio/NioUtils.java
index 7c51da1..a1a46b6 100644
--- a/luni/src/main/java/java/nio/NioUtils.java
+++ b/luni/src/main/java/java/nio/NioUtils.java
@@ -26,25 +26,6 @@ public final class NioUtils {
private NioUtils() {
}
- /**
- * Gets the start address of a direct buffer.
- * <p>
- * This method corresponds to the JNI function:
- *
- * <pre>
- * void* GetDirectBufferAddress(JNIEnv* env, jobject buf);
- * </pre>
- *
- * @param buf
- * the direct buffer whose address shall be returned must not be
- * <code>null</code>.
- * @return the address of the buffer given, or zero if the buffer is not a
- * direct Buffer.
- */
- public static int getDirectBufferAddress(Buffer buffer) {
- return buffer.effectiveDirectAddress;
- }
-
public static void freeDirectBuffer(ByteBuffer buffer) {
if (buffer == null) {
return;