Browse Source

Remove getConnection().

pull/212/head
Chris Smith 9 years ago
parent
commit
590fb6e484

+ 0
- 1
src/com/dmdirc/Channel.java View File

@@ -549,7 +549,6 @@ public class Channel extends MessageTarget implements GroupChat {
549 549
         listenerList.remove(TopicChangeListener.class, listener);
550 550
     }
551 551
 
552
-    @Override
553 552
     @Deprecated
554 553
     @Nonnull
555 554
     public Connection getConnection() {

+ 0
- 6
src/com/dmdirc/CustomWindow.java View File

@@ -64,12 +64,6 @@ public class CustomWindow extends FrameContainer {
64 64
                 eventBus, Collections.singletonList(WindowComponent.TEXTAREA.getIdentifier()));
65 65
     }
66 66
 
67
-    @Override
68
-    @Deprecated
69
-    public Connection getConnection() {
70
-        return getOptionalConnection().orElse(null);
71
-    }
72
-
73 67
     @Override
74 68
     public Optional<Connection> getOptionalConnection() {
75 69
         return getParent().flatMap(FrameContainer::getOptionalConnection);

+ 0
- 10
src/com/dmdirc/FrameContainer.java View File

@@ -344,16 +344,6 @@ public abstract class FrameContainer {
344 344
         getBackBuffer().stopAddingEvents();
345 345
     }
346 346
 
347
-    /**
348
-     * Returns the connection that this container is associated with.
349
-     *
350
-     * @deprecated Use {@link #getOptionalConnection()}
351
-     * @return the associated connection, or {@code null}.
352
-     */
353
-    @Nullable
354
-    @Deprecated
355
-    public abstract Connection getConnection();
356
-
357 347
     /**
358 348
      * Returns the connection that this container is associated with.
359 349
      *

+ 0
- 6
src/com/dmdirc/GlobalWindow.java View File

@@ -63,12 +63,6 @@ public class GlobalWindow extends FrameContainer {
63 63
                         WindowComponent.INPUTFIELD.getIdentifier()));
64 64
     }
65 65
 
66
-    @Override
67
-    @Deprecated
68
-    public Connection getConnection() {
69
-        return null;
70
-    }
71
-
72 66
     @Override
73 67
     public Optional<Connection> getOptionalConnection() {
74 68
         return Optional.empty();

+ 0
- 1
src/com/dmdirc/Query.java View File

@@ -287,7 +287,6 @@ public class Query extends MessageTarget implements PrivateActionListener,
287 287
     }
288 288
 
289 289
     @Nonnull
290
-    @Override
291 290
     @Deprecated
292 291
     public Connection getConnection() {
293 292
         return server;

+ 0
- 9
src/com/dmdirc/Raw.java View File

@@ -40,8 +40,6 @@ import java.util.Arrays;
40 40
 import java.util.Date;
41 41
 import java.util.Optional;
42 42
 
43
-import javax.annotation.Nonnull;
44
-
45 43
 /**
46 44
  * Handles the raw window (which shows the user raw data being sent and received to/from the
47 45
  * server).
@@ -113,13 +111,6 @@ public class Raw extends FrameContainer implements DataInListener, DataOutListen
113 111
         addLine("rawOut", data);
114 112
     }
115 113
 
116
-    @Nonnull
117
-    @Deprecated
118
-    @Override
119
-    public Connection getConnection() {
120
-        return server;
121
-    }
122
-
123 114
     @Override
124 115
     public Optional<Connection> getOptionalConnection() {
125 116
         return Optional.of(server);

+ 0
- 8
src/com/dmdirc/Server.java View File

@@ -94,7 +94,6 @@ import java.util.concurrent.TimeUnit;
94 94
 import java.util.concurrent.locks.ReadWriteLock;
95 95
 import java.util.concurrent.locks.ReentrantReadWriteLock;
96 96
 
97
-import javax.annotation.Nonnull;
98 97
 import javax.annotation.Nullable;
99 98
 import javax.net.ssl.SSLException;
100 99
 import javax.net.ssl.TrustManager;
@@ -1038,13 +1037,6 @@ public class Server extends FrameContainer implements ConfigChangeListener,
1038 1037
         }
1039 1038
     }
1040 1039
 
1041
-    @Nonnull
1042
-    @Deprecated
1043
-    @Override
1044
-    public Connection getConnection() {
1045
-        return this;
1046
-    }
1047
-
1048 1040
     @Override
1049 1041
     public Optional<Connection> getOptionalConnection() {
1050 1042
         return Optional.of(this);

+ 0
- 6
test/com/dmdirc/harness/TestWritableFrameContainer.java View File

@@ -68,12 +68,6 @@ public class TestWritableFrameContainer extends FrameContainer {
68 68
         return lineLength;
69 69
     }
70 70
 
71
-    @Override
72
-    @Deprecated
73
-    public Connection getConnection() {
74
-        return null;
75
-    }
76
-
77 71
     @Override
78 72
     public Optional<Connection> getOptionalConnection() {
79 73
         return Optional.empty();

Loading…
Cancel
Save