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
         return 512;
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
     @Override
86
     @Override
93
     public Optional<Connection> getOptionalConnection() {
87
     public Optional<Connection> getOptionalConnection() {
94
         return Optional.empty();
88
         return Optional.empty();

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

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

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

352
         }
352
         }
353
     }
353
     }
354
 
354
 
355
-    @Override
356
-    @Deprecated
357
-    public Connection getConnection() {
358
-        return null;
359
-    }
360
-
361
     @Override
355
     @Override
362
     public Optional<Connection> getOptionalConnection() {
356
     public Optional<Connection> getOptionalConnection() {
363
         return Optional.empty();
357
         return Optional.empty();

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

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
     @Override
71
     @Override
78
     public Optional<Connection> getOptionalConnection() {
72
     public Optional<Connection> getOptionalConnection() {
79
         return getParent().flatMap(FrameContainer::getOptionalConnection);
73
         return getParent().flatMap(FrameContainer::getOptionalConnection);

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

65
         this.connection = connection;
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
     @Override
68
     @Override
80
     public Optional<Connection> getOptionalConnection() {
69
     public Optional<Connection> getOptionalConnection() {
81
         return Optional.of(connection);
70
         return Optional.of(connection);

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

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

Loading…
Cancel
Save