Issue #3361 - HandlerCollection.addHandler is lacking synchronization.

Removed unused code.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2019-04-05 09:00:45 +02:00
parent 97d501d444
commit e4e72968cd
1 changed files with 1 additions and 12 deletions

View File

@ -424,21 +424,10 @@ public class ContextHandlerCollection extends HandlerCollection
private final Map<ContextHandler,Handler> _contextBranches = new HashMap<>();
private final Trie<Map.Entry<String,Branch[]>> _pathBranches;
Mapping(Handler[] handlers, int capacity)
private Mapping(Handler[] handlers, int capacity)
{
super(handlers);
_pathBranches = new ArrayTernaryTrie<>(false, capacity);
}
public Map<ContextHandler, Handler> getContextBranches()
{
return _contextBranches;
}
public Trie<Map.Entry<String, Branch[]>> getPathBranches()
{
return _pathBranches;
}
}
}