Simplify clear in PrefixTrieMultiMap
@@ -418,10 +418,6 @@ public final class PrefixTrieMultiMap<T> implements Serializable {
/** Remove all elements from the multimap. */
public void clear() {
- if (_root != null) {
- _root._elements = ImmutableSet.of();
- _root.setLeft(null);
- _root.setRight(null);
- }
+ _root = null;
}
}
