1 Reply Latest reply on Jul 14, 2010 6:27 AM by Xavier Agnetti

    UnusedPrivateMethod - bug when using static private method?




      I get the following violation:

      UnusedPrivateMethod. This private method (createDefaultSolidColors) does not seem to be used.


      For the foloowing code snippet:




      static const defaultSolidColors:Array = createDefaultSolidColors();




      private static function createDefaultSolidColors():Array {


           var _a:Array = new Array();



           for each (var color:uint in defaultColors) {


      new SolidColor(color, 0.8));




           return _a;



      Why is it a violation? the function is used by the defaultSolidColors property.

      Is it a bug or am I missing something?