Browse Source

Remove getMap from parser interface.

Doesn't really make any sense at all, and isn't used anywhere to
my knowledge.
pull/51/head
Chris Smith 9 years ago
parent
commit
676b9f78bb

+ 0
- 9
common/src/com/dmdirc/parser/common/BaseParser.java View File

@@ -71,9 +71,6 @@ public abstract class BaseParser extends ThreadedParser {
71 71
     /** The callback manager to use for this parser. */
72 72
     private final CallbackManager callbackManager;
73 73
 
74
-    /** A map for callers to use to store things for no sane reason. */
75
-    private final Map<Object, Object> map = new HashMap<>();
76
-
77 74
     /**
78 75
      * Creates a new base parser for the specified URI.
79 76
      *
@@ -178,12 +175,6 @@ public abstract class BaseParser extends ThreadedParser {
178 175
         return callbackManager.getCallback(callback);
179 176
     }
180 177
 
181
-    @Override
182
-    @SuppressWarnings("ReturnOfCollectionOrArrayField")
183
-    public Map<Object, Object> getMap() {
184
-        return map;
185
-    }
186
-
187 178
     @Override
188 179
     public void joinChannel(final String channel) {
189 180
         joinChannels(new ChannelJoinRequest(channel));

+ 0
- 9
common/src/com/dmdirc/parser/interfaces/Parser.java View File

@@ -31,7 +31,6 @@ import com.dmdirc.parser.common.QueuePriority;
31 31
 import java.net.URI;
32 32
 import java.util.Collection;
33 33
 import java.util.List;
34
-import java.util.Map;
35 34
 
36 35
 /**
37 36
  * A parser connects to a back-end chat system and handles all communication
@@ -158,14 +157,6 @@ public interface Parser {
158 157
      */
159 158
     void setProxy(URI proxy);
160 159
 
161
-    /**
162
-     * Retrieves a {@link Map} which can be used to store arbitrary data
163
-     * about the client.
164
-     *
165
-     * @return A map used for storing arbitrary data
166
-     */
167
-    Map<Object, Object> getMap();
168
-
169 160
     /**
170 161
      * Determines the maximimum length a message of the specified type may be.
171 162
      *

Loading…
Cancel
Save