Procházet zdrojové kódy

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 před 10 roky
rodič
revize
572aa7a7d6

+ 0
- 9
src/com/dmdirc/actions/validators/ActionNameValidator.java Zobrazit soubor

43
     /** Original name. */
43
     /** Original name. */
44
     private final String originalName;
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
      * Instantiates a new action name validator for an existing action.
47
      * Instantiates a new action name validator for an existing action.
57
      *
48
      *

+ 0
- 6
src/com/dmdirc/commandparser/CommandManager.java Zobrazit soubor

96
         registerCommand(info, command, true);
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
     /** {@inheritDoc} */
99
     /** {@inheritDoc} */
106
     @Override
100
     @Override
107
     public void unregisterCommand(final CommandInfo info) {
101
     public void unregisterCommand(final CommandInfo info) {

+ 0
- 11
src/com/dmdirc/interfaces/CommandController.java Zobrazit soubor

133
      */
133
      */
134
     void registerCommand(final Command command, final CommandInfo info);
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
      * Unregisters a command with the command manager.
137
      * Unregisters a command with the command manager.
149
      *
138
      *

+ 1
- 1
test/com/dmdirc/actions/validators/ActionNameValidatorTest.java Zobrazit soubor

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

Načítá se…
Zrušit
Uložit