Przeglądaj źródła

Remove pointless method.

Sockets are closeable now. Woo.

Change-Id: I1d58c907dd38e515b25273685d37e3650c03042f
Reviewed-on: http://gerrit.dmdirc.com/4065
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
changes/65/4065/2
Chris Smith 9 lat temu
rodzic
commit
93594b6bd6
1 zmienionych plików z 0 dodań i 17 usunięć
  1. 0
    17
      src/com/dmdirc/util/io/StreamUtils.java

+ 0
- 17
src/com/dmdirc/util/io/StreamUtils.java Wyświetl plik

@@ -24,7 +24,6 @@ package com.dmdirc.util.io;
24 24
 
25 25
 import java.io.Closeable;
26 26
 import java.io.IOException;
27
-import java.net.Socket;
28 27
 
29 28
 /**
30 29
  * Utilities for dealing with streams.
@@ -53,20 +52,4 @@ public final class StreamUtils {
53 52
         }
54 53
     }
55 54
 
56
-    /**
57
-     * Closes the stream if it is non-null, and ignores any IOExceptions
58
-     * raised by doing so.
59
-     *
60
-     * @param stream The stream to be closed
61
-     */
62
-    public static void close(final Socket stream) {
63
-        if (stream != null) {
64
-            try {
65
-                stream.close();
66
-            } catch (IOException ex) {
67
-                // Do nothing. We don't care.
68
-            }
69
-        }
70
-    }
71
-
72 55
 }

Ładowanie…
Anuluj
Zapisz