Browse Source

Merge pull request #51 from csmith/master

Remove getMap from parser interface.
pull/52/head
Greg Holmes 9 years ago
parent
commit
5772ce8c41

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

71
     /** The callback manager to use for this parser. */
71
     /** The callback manager to use for this parser. */
72
     private final CallbackManager callbackManager;
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
      * Creates a new base parser for the specified URI.
75
      * Creates a new base parser for the specified URI.
79
      *
76
      *
178
         return callbackManager.getCallback(callback);
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
     @Override
178
     @Override
188
     public void joinChannel(final String channel) {
179
     public void joinChannel(final String channel) {
189
         joinChannels(new ChannelJoinRequest(channel));
180
         joinChannels(new ChannelJoinRequest(channel));

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

31
 import java.net.URI;
31
 import java.net.URI;
32
 import java.util.Collection;
32
 import java.util.Collection;
33
 import java.util.List;
33
 import java.util.List;
34
-import java.util.Map;
35
 
34
 
36
 /**
35
 /**
37
  * A parser connects to a back-end chat system and handles all communication
36
  * A parser connects to a back-end chat system and handles all communication
158
      */
157
      */
159
     void setProxy(URI proxy);
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
      * Determines the maximimum length a message of the specified type may be.
161
      * Determines the maximimum length a message of the specified type may be.
171
      *
162
      *

Loading…
Cancel
Save