浏览代码

Remove unused parameter.

Change-Id: I4f44421605db2d969a54e3aca99527fc5004cb03
Reviewed-on: http://gerrit.dmdirc.com/3378
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
pull/1/head
Chris Smith 10 年前
父节点
当前提交
c31b948249

+ 18
- 36
src/com/dmdirc/ChannelEventHandler.java 查看文件

@@ -118,8 +118,7 @@ public class ChannelEventHandler extends EventHandler implements
118 118
         final StringBuffer messageType = new StringBuffer(
119 119
                 isMyself(client) ? "channelSelfExternalMessage" : "channelMessage");
120 120
         triggerAction(messageType, CoreActionType.CHANNEL_MESSAGE, client, message);
121
-        owner.doNotification(date, messageType.toString(), CoreActionType.CHANNEL_MESSAGE,
122
-                client, message);
121
+        owner.doNotification(date, messageType.toString(), client, message);
123 122
     }
124 123
 
125 124
     @Override
@@ -142,12 +141,11 @@ public class ChannelEventHandler extends EventHandler implements
142 141
             if (newTopic.getTopic().isEmpty()) {
143 142
                 final StringBuffer messageType = new StringBuffer("channelNoTopic");
144 143
                 triggerAction(messageType, CoreActionType.CHANNEL_NOTOPIC);
145
-                owner.doNotification(date, messageType.toString(), CoreActionType.CHANNEL_NOTOPIC);
144
+                owner.doNotification(date, messageType.toString());
146 145
             } else {
147 146
                 final StringBuffer messageType = new StringBuffer("channelTopicDiscovered");
148 147
                 triggerAction(messageType, CoreActionType.CHANNEL_GOTTOPIC, newTopic);
149
-                owner.doNotification(date, messageType.toString(), CoreActionType.CHANNEL_GOTTOPIC,
150
-                        newTopic);
148
+                owner.doNotification(date, messageType.toString(), newTopic);
151 149
             }
152 150
         } else {
153 151
             final StringBuffer messageType = new StringBuffer(
@@ -155,7 +153,6 @@ public class ChannelEventHandler extends EventHandler implements
155 153
             triggerAction(messageType, CoreActionType.CHANNEL_TOPICCHANGE,
156 154
                     channel.getChannelClient(channel.getTopicSetter(), true), channel.getTopic());
157 155
             owner.doNotification(date, messageType.toString(),
158
-                    CoreActionType.CHANNEL_TOPICCHANGE,
159 156
                     channel.getChannelClient(channel.getTopicSetter(), true), channel.getTopic());
160 157
         }
161 158
 
@@ -177,7 +174,7 @@ public class ChannelEventHandler extends EventHandler implements
177 174
 
178 175
         final StringBuffer messageType = new StringBuffer("channelJoin");
179 176
         triggerAction(messageType, CoreActionType.CHANNEL_JOIN, client);
180
-        owner.doNotification(date, messageType.toString(), CoreActionType.CHANNEL_JOIN, client);
177
+        owner.doNotification(date, messageType.toString(), client);
181 178
         owner.addClient(client);
182 179
     }
183 180
 
@@ -192,8 +189,7 @@ public class ChannelEventHandler extends EventHandler implements
192 189
                 + (reason.isEmpty() ? "" : "Reason"));
193 190
 
194 191
         triggerAction(messageType, CoreActionType.CHANNEL_PART, client, reason);
195
-        owner.doNotification(date, messageType.toString(), CoreActionType.CHANNEL_PART, client,
196
-                reason);
192
+        owner.doNotification(date, messageType.toString(), client, reason);
197 193
         owner.removeClient(client);
198 194
     }
199 195
 
@@ -207,8 +203,7 @@ public class ChannelEventHandler extends EventHandler implements
207 203
                 "channelKick" + (reason.isEmpty() ? "" : "Reason"));
208 204
         triggerAction(messageType,
209 205
                 CoreActionType.CHANNEL_KICK, client, kickedClient, reason);
210
-        owner.doNotification(date, messageType.toString(),
211
-                CoreActionType.CHANNEL_KICK, client, kickedClient, reason);
206
+        owner.doNotification(date, messageType.toString(), client, kickedClient, reason);
212 207
         owner.removeClient(kickedClient);
213 208
     }
214 209
 
@@ -220,8 +215,7 @@ public class ChannelEventHandler extends EventHandler implements
220 215
         final StringBuffer messageType = new StringBuffer(
221 216
                 "channelQuit" + (reason.isEmpty() ? "" : "Reason"));
222 217
         triggerAction(messageType, CoreActionType.CHANNEL_QUIT, client, reason);
223
-        owner.doNotification(date, messageType.toString(),
224
-                CoreActionType.CHANNEL_QUIT, client, reason);
218
+        owner.doNotification(date, messageType.toString(), client, reason);
225 219
         owner.removeClient(client);
226 220
     }
227 221
 
@@ -234,8 +228,7 @@ public class ChannelEventHandler extends EventHandler implements
234 228
         final StringBuffer messageType = new StringBuffer(
235 229
                 isMyself(client) ? "channelSelfExternalAction" : "channelAction");
236 230
         triggerAction(messageType, CoreActionType.CHANNEL_ACTION, client, message);
237
-        owner.doNotification(date, messageType.toString(),
238
-                CoreActionType.CHANNEL_ACTION, client, message);
231
+        owner.doNotification(date, messageType.toString(), client, message);
239 232
     }
240 233
 
241 234
     @Override
@@ -247,8 +240,7 @@ public class ChannelEventHandler extends EventHandler implements
247 240
                 isMyself(client) ? "channelSelfNickChange" : "channelNickChange");
248 241
 
249 242
         triggerAction(messageType, CoreActionType.CHANNEL_NICKCHANGE, client, oldNick);
250
-        owner.doNotification(date, messageType.toString(),
251
-                CoreActionType.CHANNEL_NICKCHANGE, client, oldNick);
243
+        owner.doNotification(date, messageType.toString(), client, oldNick);
252 244
         owner.renameClient(oldNick, client.getClient().getNickname());
253 245
     }
254 246
 
@@ -266,13 +258,12 @@ public class ChannelEventHandler extends EventHandler implements
266 258
                 triggerAction(messageType, CoreActionType.CHANNEL_MODESDISCOVERED,
267 259
                         modes.length() <= 1 ? "" : modes);
268 260
                 owner.doNotification(date, messageType.toString(),
269
-                        CoreActionType.CHANNEL_MODESDISCOVERED, modes.length() <= 1 ? "" : modes);
261
+                        modes.length() <= 1 ? "" : modes);
270 262
             } else {
271 263
                 final StringBuffer messageType = new StringBuffer(
272 264
                         isMyself(client) ? "channelSelfModeChanged" : "channelModeChanged");
273 265
                 triggerAction(messageType, CoreActionType.CHANNEL_MODECHANGE, client, modes);
274
-                owner.doNotification(date, messageType.toString(),
275
-                        CoreActionType.CHANNEL_MODECHANGE, client, modes);
266
+                owner.doNotification(date, messageType.toString(), client, modes);
276 267
             }
277 268
         }
278 269
 
@@ -295,9 +286,7 @@ public class ChannelEventHandler extends EventHandler implements
295 286
             final StringBuffer messageType = new StringBuffer(format);
296 287
             triggerAction(messageType, CoreActionType.CHANNEL_USERMODECHANGE, client,
297 288
                     targetClient, mode);
298
-            owner.doNotification(date, messageType.toString(),
299
-                    CoreActionType.CHANNEL_USERMODECHANGE,
300
-                    client, targetClient, mode);
289
+            owner.doNotification(date, messageType.toString(), client, targetClient, mode);
301 290
         }
302 291
     }
303 292
 
@@ -312,8 +301,7 @@ public class ChannelEventHandler extends EventHandler implements
312 301
             owner.getConnection().sendCTCPReply(client.getClient().getNickname(),
313 302
                     type, message);
314 303
         }
315
-        owner.doNotification(date, messageType.toString(), CoreActionType.CHANNEL_CTCP,
316
-                client, type, message);
304
+        owner.doNotification(date, messageType.toString(), client, type, message);
317 305
     }
318 306
 
319 307
     @Override
@@ -329,9 +317,7 @@ public class ChannelEventHandler extends EventHandler implements
329 317
 
330 318
             // TODO: The events should take a formatter.
331 319
             owner.doNotification(date, (away ? "channelUserAway" : "channelUserBack")
332
-                    + (discovered ? "Discovered" : ""),
333
-                    away ? CoreActionType.CHANNEL_USERAWAY : CoreActionType.CHANNEL_USERBACK,
334
-                    channelClient);
320
+                    + (discovered ? "Discovered" : ""), channelClient);
335 321
             if (away) {
336 322
                 eventBus.post(new ChannelUserAwayEvent(owner, channelClient));
337 323
             } else {
@@ -348,8 +334,7 @@ public class ChannelEventHandler extends EventHandler implements
348 334
 
349 335
         final StringBuffer messageType = new StringBuffer("channelNotice");
350 336
         triggerAction(messageType, CoreActionType.CHANNEL_NOTICE, client, message);
351
-        owner.doNotification(date, messageType.toString(), CoreActionType.CHANNEL_NOTICE,
352
-                client, message);
337
+        owner.doNotification(date, messageType.toString(), client, message);
353 338
     }
354 339
 
355 340
     @Override
@@ -366,14 +351,12 @@ public class ChannelEventHandler extends EventHandler implements
366 351
                 triggerAction(messageType, CoreActionType.CHANNEL_MODESDISCOVERED,
367 352
                         modes.length() <= 1 ? "" : modes);
368 353
                 owner.doNotification(date, messageType.toString(),
369
-                        CoreActionType.CHANNEL_MODESDISCOVERED,
370 354
                         modes.length() <= 1 ? "" : modes);
371 355
             } else {
372 356
                 final StringBuffer messageType = new StringBuffer(
373 357
                         isMyself(client) ? "channelSelfModeChanged" : "channelModeChanged");
374 358
                 triggerAction(messageType, CoreActionType.CHANNEL_MODECHANGE, client, modes);
375
-                owner.doNotification(date, messageType.toString(),
376
-                        CoreActionType.CHANNEL_MODECHANGE, client, modes);
359
+                owner.doNotification(date, messageType.toString(), client, modes);
377 360
             }
378 361
         }
379 362
 
@@ -390,7 +373,7 @@ public class ChannelEventHandler extends EventHandler implements
390 373
         final StringBuffer messageType = new StringBuffer("channelModeNotice");
391 374
         triggerAction(messageType, CoreActionType.CHANNEL_MODE_NOTICE, client, String.
392 375
                 valueOf(prefix), message);
393
-        owner.doNotification(date, messageType.toString(), CoreActionType.CHANNEL_MODE_NOTICE,
376
+        owner.doNotification(date, messageType.toString(),
394 377
                 client, String.valueOf(prefix), message);
395 378
     }
396 379
 
@@ -402,8 +385,7 @@ public class ChannelEventHandler extends EventHandler implements
402 385
         final StringBuffer messageType = new StringBuffer("channelListModeRetrieved");
403 386
         triggerAction(messageType, CoreActionType.CHANNEL_LISTMODERETRIEVED,
404 387
                 Character.valueOf(mode));
405
-        owner.doNotification(date, messageType.toString(),
406
-                CoreActionType.CHANNEL_LISTMODERETRIEVED, Character.valueOf(mode));
388
+        owner.doNotification(date, messageType.toString(), Character.valueOf(mode));
407 389
     }
408 390
 
409 391
     private boolean triggerAction(final StringBuffer messageType, final ActionType actionType,

+ 3
- 6
src/com/dmdirc/Query.java 查看文件

@@ -146,11 +146,9 @@ public class Query extends MessageTarget implements PrivateActionListener,
146 146
             if (!part.isEmpty()) {
147 147
                 server.getParser().sendMessage(target, part);
148 148
 
149
-                doNotification("querySelfMessage",
150
-                        CoreActionType.QUERY_SELF_MESSAGE,
149
+                doNotification("querySelfMessage", server.getParser().getLocalClient(), part);
150
+                triggerAction("querySelfMessage", CoreActionType.QUERY_SELF_MESSAGE,
151 151
                         server.getParser().getLocalClient(), part);
152
-                triggerAction("querySelfMessage", CoreActionType.QUERY_SELF_MESSAGE, server.
153
-                        getParser().getLocalClient(), part);
154 152
             }
155 153
         }
156 154
     }
@@ -192,8 +190,7 @@ public class Query extends MessageTarget implements PrivateActionListener,
192 190
         if (maxLineLength >= action.length() + 2) {
193 191
             server.getParser().sendAction(getNickname(), action);
194 192
 
195
-            doNotification("querySelfAction", CoreActionType.QUERY_SELF_ACTION,
196
-                    client, action);
193
+            doNotification("querySelfAction", client, action);
197 194
             triggerAction("querySelfAction", CoreActionType.QUERY_SELF_ACTION, client, action);
198 195
         } else {
199 196
             addLine("actionTooLong", action.length());

+ 22
- 36
src/com/dmdirc/ServerEventHandler.java 查看文件

@@ -174,8 +174,7 @@ public class ServerEventHandler extends EventHandler implements
174 174
             final String message, final String host) {
175 175
         checkParser(parser);
176 176
 
177
-        owner.doNotification("privateCTCP", CoreActionType.SERVER_CTCP,
178
-                owner.getParser().getClient(host), type, message);
177
+        owner.doNotification("privateCTCP", owner.getParser().getClient(host), type, message);
179 178
         if (triggerAction("privateCTCP", CoreActionType.SERVER_CTCP, owner.getParser().getClient(
180 179
                 host), type, message)) {
181 180
             owner.sendCTCPReply(owner.parseHostmask(host)[0], type, message);
@@ -187,8 +186,7 @@ public class ServerEventHandler extends EventHandler implements
187 186
             final String message, final String host) {
188 187
         checkParser(parser);
189 188
 
190
-        owner.doNotification("privateCTCPreply", CoreActionType.SERVER_CTCPR,
191
-                owner.getParser().getClient(host), type, message);
189
+        owner.doNotification("privateCTCPreply", owner.getParser().getClient(host), type, message);
192 190
         triggerAction("privateCTCPreply", CoreActionType.SERVER_CTCPR, owner.getParser().getClient(
193 191
                 host), type, message);
194 192
     }
@@ -205,8 +203,7 @@ public class ServerEventHandler extends EventHandler implements
205 203
             final String message, final String host) {
206 204
         checkParser(parser);
207 205
 
208
-        owner.doNotification("privateNotice", CoreActionType.SERVER_NOTICE,
209
-                owner.getParser().getClient(host), message);
206
+        owner.doNotification("privateNotice", owner.getParser().getClient(host), message);
210 207
         triggerAction("privateNotice", CoreActionType.SERVER_NOTICE, owner.getParser().getClient(
211 208
                 host), message);
212 209
     }
@@ -216,8 +213,7 @@ public class ServerEventHandler extends EventHandler implements
216 213
             final String message, final String host) {
217 214
         checkParser(parser);
218 215
 
219
-        owner.doNotification("serverNotice", CoreActionType.SERVER_SERVERNOTICE,
220
-                owner.getParser().getClient(host), message);
216
+        owner.doNotification("serverNotice", owner.getParser().getClient(host), message);
221 217
         triggerAction("serverNotice", CoreActionType.SERVER_SERVERNOTICE, owner.getParser().
222 218
                 getClient(host), message);
223 219
     }
@@ -226,7 +222,7 @@ public class ServerEventHandler extends EventHandler implements
226 222
     public void onMOTDStart(final Parser parser, final Date date, final String data) {
227 223
         checkParser(parser);
228 224
 
229
-        owner.doNotification("motdStart", CoreActionType.SERVER_MOTDSTART, data);
225
+        owner.doNotification("motdStart", data);
230 226
         triggerAction("motdStart", CoreActionType.SERVER_MOTDSTART, data);
231 227
     }
232 228
 
@@ -234,7 +230,7 @@ public class ServerEventHandler extends EventHandler implements
234 230
     public void onMOTDLine(final Parser parser, final Date date, final String data) {
235 231
         checkParser(parser);
236 232
 
237
-        owner.doNotification("motdLine", CoreActionType.SERVER_MOTDLINE, data);
233
+        owner.doNotification("motdLine", data);
238 234
         triggerAction("motdLine", CoreActionType.SERVER_MOTDLINE, data);
239 235
     }
240 236
 
@@ -243,7 +239,7 @@ public class ServerEventHandler extends EventHandler implements
243 239
             final boolean noMOTD, final String data) {
244 240
         checkParser(parser);
245 241
 
246
-        owner.doNotification("motdEnd", CoreActionType.SERVER_MOTDEND, data);
242
+        owner.doNotification("motdEnd", data);
247 243
         triggerAction("motdEnd", CoreActionType.SERVER_MOTDEND, data);
248 244
     }
249 245
 
@@ -290,10 +286,10 @@ public class ServerEventHandler extends EventHandler implements
290 286
         }
291 287
 
292 288
         if (currentState == AwayState.AWAY) {
293
-            owner.doNotification("away", CoreActionType.SERVER_AWAY, reason);
289
+            owner.doNotification("away", reason);
294 290
             triggerAction("away", CoreActionType.SERVER_AWAY, reason);
295 291
         } else {
296
-            owner.doNotification("back", CoreActionType.SERVER_BACK);
292
+            owner.doNotification("back");
297 293
             triggerAction("back", CoreActionType.SERVER_BACK);
298 294
         }
299 295
     }
@@ -320,7 +316,7 @@ public class ServerEventHandler extends EventHandler implements
320 316
     public void onNoticeAuth(final Parser parser, final Date date, final String data) {
321 317
         checkParser(parser);
322 318
 
323
-        owner.doNotification("authNotice", CoreActionType.SERVER_AUTHNOTICE, data);
319
+        owner.doNotification("authNotice", data);
324 320
         triggerAction("authNotice", CoreActionType.SERVER_AUTHNOTICE, data);
325 321
     }
326 322
 
@@ -329,8 +325,7 @@ public class ServerEventHandler extends EventHandler implements
329 325
             final String target, final String host) {
330 326
         checkParser(parser);
331 327
 
332
-        owner.doNotification("unknownNotice", CoreActionType.SERVER_UNKNOWNNOTICE,
333
-                host, target, message);
328
+        owner.doNotification("unknownNotice", host, target, message);
334 329
         triggerAction("unknownNotice", CoreActionType.SERVER_UNKNOWNNOTICE, host, target, message);
335 330
     }
336 331
 
@@ -342,12 +337,11 @@ public class ServerEventHandler extends EventHandler implements
342 337
         if (parser.getLocalClient().equals(parser.getClient(host))) {
343 338
             // Local client
344 339
             owner.getQuery(target).doNotification("querySelfExternalMessage",
345
-                    CoreActionType.QUERY_SELF_MESSAGE, parser.getLocalClient(), message);
340
+                    parser.getLocalClient(), message);
346 341
             triggerAction("querySelfExternalMessage", CoreActionType.QUERY_SELF_MESSAGE, parser.
347 342
                     getLocalClient(), message);
348 343
         } else {
349
-            owner.doNotification("unknownMessage", CoreActionType.SERVER_UNKNOWNNOTICE,
350
-                    host, target, message);
344
+            owner.doNotification("unknownMessage", host, target, message);
351 345
             triggerAction("unknownMessage", CoreActionType.SERVER_UNKNOWNNOTICE, host, target,
352 346
                     message);
353 347
         }
@@ -361,11 +355,10 @@ public class ServerEventHandler extends EventHandler implements
361 355
         if (parser.getLocalClient().equals(parser.getClient(host))) {
362 356
             // Local client
363 357
             owner.getQuery(target).doNotification("querySelfExternalAction",
364
-                    CoreActionType.QUERY_SELF_ACTION, parser.getLocalClient(), message);
358
+                    parser.getLocalClient(), message);
365 359
             triggerAction("querySelfExternalAction", CoreActionType.QUERY_SELF_ACTION, message);
366 360
         } else {
367
-            owner.doNotification("unknownAction", CoreActionType.SERVER_UNKNOWNACTION,
368
-                    host, target, message);
361
+            owner.doNotification("unknownAction", host, target, message);
369 362
             triggerAction("unknownAction", CoreActionType.SERVER_UNKNOWNACTION, host, target,
370 363
                     message);
371 364
         }
@@ -376,8 +369,7 @@ public class ServerEventHandler extends EventHandler implements
376 369
             final ClientInfo client, final String host, final String modes) {
377 370
         checkParser(parser);
378 371
 
379
-        owner.doNotification("userModeChanged", CoreActionType.SERVER_USERMODES,
380
-                owner.getParser().getClient(host), modes);
372
+        owner.doNotification("userModeChanged", owner.getParser().getClient(host), modes);
381 373
         triggerAction("userModeChanged", CoreActionType.SERVER_USERMODES, owner.getParser().
382 374
                 getClient(host), modes);
383 375
     }
@@ -388,8 +380,7 @@ public class ServerEventHandler extends EventHandler implements
388 380
         checkParser(parser);
389 381
 
390 382
         owner.doNotification(modes.isEmpty() || "+".equals(modes)
391
-                ? "userNoModes" : "userModeDiscovered",
392
-                CoreActionType.SERVER_USERMODES, client, modes);
383
+                ? "userNoModes" : "userModeDiscovered", client, modes);
393 384
         triggerAction(modes.isEmpty() || "+".equals(modes) ? "userNoModes" : "userModeDiscovered",
394 385
                 CoreActionType.SERVER_USERMODES, client, modes);
395 386
     }
@@ -401,7 +392,6 @@ public class ServerEventHandler extends EventHandler implements
401 392
 
402 393
         owner.addInvite(new Invite(owner, channel, userHost));
403 394
         owner.doNotification("inviteReceived",
404
-                CoreActionType.SERVER_INVITERECEIVED,
405 395
                 owner.getParser().getClient(userHost), channel);
406 396
         triggerAction("inviteReceived", CoreActionType.SERVER_INVITERECEIVED, owner.getParser().
407 397
                 getClient(userHost), channel);
@@ -412,8 +402,7 @@ public class ServerEventHandler extends EventHandler implements
412 402
             final String host) {
413 403
         checkParser(parser);
414 404
 
415
-        owner.doNotification("wallop", CoreActionType.SERVER_WALLOPS,
416
-                owner.getParser().getClient(host), message);
405
+        owner.doNotification("wallop", owner.getParser().getClient(host), message);
417 406
         triggerAction("wallop", CoreActionType.SERVER_WALLOPS, owner.getParser().getClient(host),
418 407
                 message);
419 408
 
@@ -424,8 +413,7 @@ public class ServerEventHandler extends EventHandler implements
424 413
             final String host) {
425 414
         checkParser(parser);
426 415
 
427
-        owner.doNotification("walluser", CoreActionType.SERVER_WALLUSERS,
428
-                owner.getParser().getClient(host), message);
416
+        owner.doNotification("walluser", owner.getParser().getClient(host), message);
429 417
         triggerAction("walluser", CoreActionType.SERVER_WALLUSERS, owner.getParser().getClient(host),
430 418
                 message);
431 419
     }
@@ -435,8 +423,7 @@ public class ServerEventHandler extends EventHandler implements
435 423
             final String host) {
436 424
         checkParser(parser);
437 425
 
438
-        owner.doNotification("walldesync", CoreActionType.SERVER_WALLDESYNC,
439
-                owner.getParser().getClient(host), message);
426
+        owner.doNotification("walldesync", owner.getParser().getClient(host), message);
440 427
         triggerAction("walldesync", CoreActionType.SERVER_WALLDESYNC, owner.getParser().getClient(
441 428
                 host), message);
442 429
     }
@@ -447,8 +434,7 @@ public class ServerEventHandler extends EventHandler implements
447 434
         checkParser(parser);
448 435
 
449 436
         if (client.equals(owner.getParser().getLocalClient())) {
450
-            owner.doNotification("selfNickChange", CoreActionType.SERVER_NICKCHANGE,
451
-                    oldNick, client.getNickname());
437
+            owner.doNotification("selfNickChange", oldNick, client.getNickname());
452 438
             triggerAction("selfNickChange", CoreActionType.SERVER_NICKCHANGE, oldNick, client.
453 439
                     getNickname());
454 440
             owner.updateTitle();
@@ -459,7 +445,7 @@ public class ServerEventHandler extends EventHandler implements
459 445
     public void onServerError(final Parser parser, final Date date, final String message) {
460 446
         checkParser(parser);
461 447
 
462
-        owner.doNotification("serverError", CoreActionType.SERVER_ERROR, message);
448
+        owner.doNotification("serverError", message);
463 449
         triggerAction("serverError", CoreActionType.SERVER_ERROR, message);
464 450
     }
465 451
 

+ 3
- 8
src/com/dmdirc/WritableFrameContainer.java 查看文件

@@ -23,7 +23,6 @@
23 23
 package com.dmdirc;
24 24
 
25 25
 import com.dmdirc.commandparser.parsers.CommandParser;
26
-import com.dmdirc.interfaces.actions.ActionType;
27 26
 import com.dmdirc.interfaces.config.AggregateConfigProvider;
28 27
 import com.dmdirc.messages.MessageSinkManager;
29 28
 import com.dmdirc.parser.common.CompositionState;
@@ -174,14 +173,12 @@ public abstract class WritableFrameContainer extends FrameContainer {
174 173
      * Processes and displays a notification.
175 174
      *
176 175
      * @param messageType The name of the formatter to be used for the message
177
-     * @param actionType  The action type to be used
178 176
      * @param args        The arguments for the message
179 177
      *
180 178
      * @return True if any further behaviour should be executed, false otherwise
181 179
      */
182
-    public boolean doNotification(final String messageType,
183
-            final ActionType actionType, final Object... args) {
184
-        return doNotification(new Date(), messageType, actionType, args);
180
+    public boolean doNotification(final String messageType, final Object... args) {
181
+        return doNotification(new Date(), messageType, args);
185 182
     }
186 183
 
187 184
     /**
@@ -189,13 +186,11 @@ public abstract class WritableFrameContainer extends FrameContainer {
189 186
      *
190 187
      * @param date        The date/time at which the event occured
191 188
      * @param messageType The name of the formatter to be used for the message
192
-     * @param actionType  The action type to be used
193 189
      * @param args        The arguments for the message
194 190
      *
195 191
      * @return True if any further behaviour should be executed, false otherwise
196 192
      */
197
-    public boolean doNotification(final Date date, final String messageType,
198
-            final ActionType actionType, final Object... args) {
193
+    public boolean doNotification(final Date date, final String messageType, final Object... args) {
199 194
         final List<Object> messageArgs = new ArrayList<>();
200 195
         final List<Object> actionArgs = new ArrayList<>();
201 196
         final StringBuffer buffer = new StringBuffer(messageType);

正在加载...
取消
保存