Browse Source

Remove some dead code.

Change-Id: I012bda14c81e80219b1b4db8cd1db1b15f70fb68
Reviewed-on: http://gerrit.dmdirc.com/2918
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.8rc1
Chris Smith 10 years ago
parent
commit
572aa7a7d6

+ 0
- 9
src/com/dmdirc/actions/validators/ActionNameValidator.java View File

@@ -43,15 +43,6 @@ public class ActionNameValidator implements Validator<String> {
43 43
     /** Original name. */
44 44
     private final String originalName;
45 45
 
46
-    /**
47
-     * Instantiates a new action name validator.
48
-     *
49
-     * @param group Associated action group
50
-     */
51
-    public ActionNameValidator(final ActionGroup group) {
52
-        this (group, "");
53
-    }
54
-
55 46
     /**
56 47
      * Instantiates a new action name validator for an existing action.
57 48
      *

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

@@ -96,12 +96,6 @@ public class CommandManager implements CommandController {
96 96
         registerCommand(info, command, true);
97 97
     }
98 98
 
99
-    /** {@inheritDoc} */
100
-    @Override
101
-    public <T extends Command & CommandInfo> void registerCommand(final T command) {
102
-        registerCommand(command, command);
103
-    }
104
-
105 99
     /** {@inheritDoc} */
106 100
     @Override
107 101
     public void unregisterCommand(final CommandInfo info) {

+ 0
- 11
src/com/dmdirc/interfaces/CommandController.java View File

@@ -133,17 +133,6 @@ public interface CommandController {
133 133
      */
134 134
     void registerCommand(final Command command, final CommandInfo info);
135 135
 
136
-    /**
137
-     * Registers a {@link Command} which also implements the {@link CommandInfo}
138
-     * interface with the command manager.
139
-     *
140
-     * @param <T> The type of object that's being registered
141
-     * @param command An object that extends {@link Command} and implements
142
-     * {@link CommandInfo} to be registered.
143
-     * @since 0.6.3m1
144
-     */
145
-    <T extends Command & CommandInfo> void registerCommand(final T command);
146
-
147 136
     /**
148 137
      * Unregisters a command with the command manager.
149 138
      *

+ 1
- 1
test/com/dmdirc/actions/validators/ActionNameValidatorTest.java View File

@@ -51,7 +51,7 @@ public class ActionNameValidatorTest {
51 51
 
52 52
     @Test
53 53
     public void testConflicting() {
54
-        final ActionNameValidator instance = new ActionNameValidator(getGroup());
54
+        final ActionNameValidator instance = new ActionNameValidator(getGroup(), "blah");
55 55
 
56 56
         assertTrue(instance.validate("test1").isFailure());
57 57
     }

Loading…
Cancel
Save