@@ -335,21 +335,13 @@ public override void BuildClassPath()
335
335
336
336
// intrinsics (deprecated, excepted for FP10 Vector.<T>)
337
337
// add from the highest version number (FP11 > FP10 > FP9)
338
- if ( majorVersion >= 9 )
338
+ string fp = as3settings . AS3ClassPath + S + "FP" ;
339
+ for ( int i = majorVersion ; i >= 9 ; i -- )
339
340
{
340
- string fp = as3settings . AS3ClassPath + S + "FP" ;
341
- for ( int i = majorVersion ; i >= 10 ; i -- )
342
- {
343
- for ( int j = minorVersion ; j >= 0 ; j -- )
344
- {
345
- AddPath ( PathHelper . ResolvePath ( fp + i + "." + j ) ) ;
346
- }
347
- AddPath ( PathHelper . ResolvePath ( fp + i ) ) ;
348
- }
349
- AddPath ( PathHelper . ResolvePath ( fp + "9" ) ) ;
341
+ AddPath ( PathHelper . ResolvePath ( fp + i ) ) ;
350
342
}
351
343
352
- // add external pathes
344
+ // add external paths
353
345
List < PathModel > initCP = classPath ;
354
346
classPath = new List < PathModel > ( ) ;
355
347
if ( contextSetup . Classpath != null )
@@ -360,20 +352,20 @@ public override void BuildClassPath()
360
352
361
353
// add library
362
354
AddPath ( PathHelper . LibraryDir + S + "AS3" + S + "classes" ) ;
363
- // add user pathes from settings
355
+ // add user paths from settings
364
356
if ( settings . UserClasspath != null && settings . UserClasspath . Length > 0 )
365
357
{
366
358
foreach ( string cpath in settings . UserClasspath ) AddPath ( cpath . Trim ( ) ) ;
367
359
}
368
360
369
- // add initial pathes
361
+ // add initial paths
370
362
foreach ( PathModel mpath in initCP ) AddPath ( mpath ) ;
371
363
372
364
// parse top-level elements
373
365
InitTopLevelElements ( ) ;
374
366
if ( cFile != null ) UpdateTopLevelElements ( ) ;
375
367
376
- // add current temporaty path
368
+ // add current temporary path
377
369
if ( temporaryPath != null )
378
370
{
379
371
string tempPath = temporaryPath ;
0 commit comments