Fixed maxTags enabled bug

Removed some lines that appear to be deprecated code. These lines crash execution when calling 'removeAll' method with options.maxTags set.