Commit 75ba9ce4 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Remove support for old categories.json file syntax.

The old syntax has been deprecated for a while - time to remove
support completely.
parent 718c4c90
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -15,12 +15,6 @@ module JsDuck
      def generate
        @categories = Util::Json.read(@filename)

        # Don't crash if old syntax is used.
        if @categories.is_a?(Hash) && @categories["categories"]
          Logger.warn(nil, 'Update categories file to contain just the array inside {"categories": [...]}', @filename)
          @categories = @categories["categories"]
        end

        # Perform expansion on all class names containing * wildcard
        @categories.each do |cat|
          cat["groups"].each do |group|