diff --git a/lib/jsduck/aggregator.rb b/lib/jsduck/aggregator.rb index d430f4ff8b2643319756b7e99c8724543966e10d..58427a3a534d57a7d450b78a0981e1b2aa5e2654 100644 --- a/lib/jsduck/aggregator.rb +++ b/lib/jsduck/aggregator.rb @@ -9,7 +9,6 @@ module JsDuck # class. class Aggregator def initialize - @documentation = [] @classes = {} @alt_names = {} @orphans = [] @@ -63,7 +62,6 @@ module JsDuck @current_class = old_cls else @current_class = cls - @documentation << cls @classes[cls[:name]] = cls # Register all alternate names of class for lookup too @@ -78,7 +76,6 @@ module JsDuck # it by merging the class with alt-name into this class. if @classes[altname] merge_classes(cls, @classes[altname]) - @documentation.delete(@classes[altname]) @classes.delete(altname) warn_alt_name(cls) end