diff options
Diffstat (limited to 'dalvik/src')
-rw-r--r-- | dalvik/src/main/java/dalvik/system/BlockGuard.java | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/dalvik/src/main/java/dalvik/system/BlockGuard.java b/dalvik/src/main/java/dalvik/system/BlockGuard.java index 0c38166..6744448 100644 --- a/dalvik/src/main/java/dalvik/system/BlockGuard.java +++ b/dalvik/src/main/java/dalvik/system/BlockGuard.java @@ -195,14 +195,6 @@ public final class BlockGuard { return mNetwork.writeDirect(fd, address, offset, count); } - public boolean isConnected(FileDescriptor fd, int timeout) throws IOException { - if (timeout != 0) { - // Greater than 0 is a timeout, but zero means "poll and return immediately". - BlockGuard.getThreadPolicy().onNetwork(); - } - return mNetwork.isConnected(fd, timeout); - } - public int send(FileDescriptor fd, byte[] data, int offset, int length, int port, InetAddress inetAddress) throws IOException { // Note: no BlockGuard violation. We permit datagrams |