Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1c55809 authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Delete LocalSocket#createConnectedLocalSocket.

The only caller of this method was BluetoothSocket, and that is
being removed in this topic.

Test: m
Bug: 200200870
Change-Id: Ic211448bc805c6f74852a8813317444bfb33c9dd
parent 8093d78d
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -108,19 +108,6 @@ public class LocalSocket implements Closeable {
        checkConnected();
    }

    /**
     * Creates a LocalSocket instances using the FileDescriptor for an already-connected
     * AF_LOCAL/UNIX domain stream socket. Note: the FileDescriptor must be closed by the caller:
     * closing the LocalSocket will not close it.
     *
     * TODO: delete this method when Bluetooth is no longer using it.
     *
     * @hide
     */
    public static LocalSocket createConnectedLocalSocket(FileDescriptor fd) {
        return new LocalSocket(fd);
    }

    /**
     * for use with LocalServerSocket.accept()
     */