Browse Source

Remove getConnection().

pull/172/head
Chris Smith 9 years ago
parent
commit
6984d0482b

+ 0
- 6
dcc/src/com/dmdirc/addons/dcc/DCCFrameContainer.java View File

@@ -83,12 +83,6 @@ public abstract class DCCFrameContainer extends FrameContainer {
83 83
         return 512;
84 84
     }
85 85
 
86
-    @Override
87
-    @Deprecated
88
-    public Connection getConnection() { //NOPMD - server will always be null
89
-        return null;
90
-    }
91
-
92 86
     @Override
93 87
     public Optional<Connection> getOptionalConnection() {
94 88
         return Optional.empty();

+ 0
- 6
dcc/src/com/dmdirc/addons/dcc/PlaceholderContainer.java View File

@@ -91,12 +91,6 @@ public class PlaceholderContainer extends FrameContainer {
91 91
         }
92 92
     }
93 93
 
94
-    @Override
95
-    @Deprecated
96
-    public Connection getConnection() {
97
-        return null;
98
-    }
99
-
100 94
     @Override
101 95
     public Optional<Connection> getOptionalConnection() {
102 96
         return Optional.empty();

+ 0
- 6
dcc/src/com/dmdirc/addons/dcc/TransferContainer.java View File

@@ -352,12 +352,6 @@ public class TransferContainer extends FrameContainer implements
352 352
         }
353 353
     }
354 354
 
355
-    @Override
356
-    @Deprecated
357
-    public Connection getConnection() {
358
-        return null;
359
-    }
360
-
361 355
     @Override
362 356
     public Optional<Connection> getOptionalConnection() {
363 357
         return Optional.empty();

+ 0
- 6
logging/src/com/dmdirc/addons/logging/HistoryWindow.java View File

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

+ 0
- 11
parserdebug/src/com/dmdirc/addons/parserdebug/DebugWindow.java View File

@@ -65,17 +65,6 @@ public class DebugWindow extends FrameContainer {
65 65
         this.connection = connection;
66 66
     }
67 67
 
68
-    /**
69
-     * Returns the server instance associated with this container.
70
-     *
71
-     * @return the associated server connection
72
-     */
73
-    @Override
74
-    @Deprecated
75
-    public Connection getConnection() {
76
-        return connection;
77
-    }
78
-
79 68
     @Override
80 69
     public Optional<Connection> getOptionalConnection() {
81 70
         return Optional.of(connection);

+ 0
- 6
redirect/src/com/dmdirc/addons/redirect/FakeWriteableFrameContainer.java View File

@@ -98,12 +98,6 @@ public class FakeWriteableFrameContainer extends FrameContainer {
98 98
         return target.getMaxLineLength();
99 99
     }
100 100
 
101
-    @Override
102
-    @Deprecated
103
-    public Connection getConnection() {
104
-        return target.getConnection();
105
-    }
106
-
107 101
     @Override
108 102
     public Optional<Connection> getOptionalConnection() {
109 103
         return target.getOptionalConnection();

Loading…
Cancel
Save