Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/12/10 01:29:35 (14 years ago)
Author:
swagner
Message:

Removed unnecessary checks if the application manager is not null (#954).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperator.cs

    r3234 r3303  
    198198      var locationTable = assemblies.ToDictionary(a => a.Location, a => a);
    199199
    200       if (ApplicationManager.Manager != null) {
    201         foreach (var plugin in ApplicationManager.Manager.Plugins) {
    202           var aList = new List<Assembly>();
    203           foreach (var aName in from file in plugin.Files
    204                                 where file.Type == PluginFileType.Assembly
    205                                 select file.Name) {
    206             Assembly a;
    207             locationTable.TryGetValue(aName, out a);
    208             if (a != null) {
    209               aList.Add(a);
    210               locationTable.Remove(aName);
    211             }
     200      foreach (var plugin in ApplicationManager.Manager.Plugins) {
     201        var aList = new List<Assembly>();
     202        foreach (var aName in from file in plugin.Files
     203                              where file.Type == PluginFileType.Assembly
     204                              select file.Name) {
     205          Assembly a;
     206          locationTable.TryGetValue(aName, out a);
     207          if (a != null) {
     208            aList.Add(a);
     209            locationTable.Remove(aName);
    212210          }
    213           plugins[plugin.Name] = aList;
    214         }
     211        }
     212        plugins[plugin.Name] = aList;
    215213      }
    216214
Note: See TracChangeset for help on using the changeset viewer.