File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import Route from '@ember/routing/route';
33import semverCompare from 'semver-compare' ;
44import getFullVersion from 'ember-api-docs/utils/get-full-version' ;
55import getLastVersion from 'ember-api-docs/utils/get-last-version' ;
6- import getCompactVersion from 'ember-api-docs/utils/get-compact-version' ;
76
87import config from 'ember-api-docs/config/environment' ;
98
@@ -135,20 +134,6 @@ export default class ProjectVersionRoute extends Route {
135134 } ;
136135 }
137136
138- // Input some version info, returns a boolean based on
139- // whether the user is switching versions for a 2.16 docs release or later.
140- // The urls for pre-2.16 classes and later packages are quite different
141- shouldConvertPackages ( targetVer , previousVer ) {
142- let targetVersion = getCompactVersion ( targetVer . id ) ;
143- let previousVersion = getCompactVersion ( previousVer ) ;
144- let previousComparison = semverCompare ( previousVersion , '2.16' ) ;
145- let targetComparison = semverCompare ( targetVersion , '2.16' ) ;
146- return (
147- ( previousComparison < 0 && targetComparison >= 0 ) ||
148- ( previousComparison >= 0 && targetComparison < 0 )
149- ) ;
150- }
151-
152137 /**
153138 splits the first encoded revision string in the list and takes the string after the version (which is the encoded name), then decodes the result.
154139 */
You can’t perform that action at this time.
0 commit comments