Free cookie consent management tool by TermsFeed Policy Generator

Changeset 101


Ignore:
Timestamp:
03/26/08 19:01:53 (17 years ago)
Author:
abeham
Message:

Using clear method in ScopeCleaner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators/ScopeCleaner.cs

    r100 r101  
    3333
    3434    public override IOperation Apply(IScope scope) {
    35       // remove all subscopes
    36       while (scope.SubScopes.Count > 0)
    37         scope.RemoveSubScope(scope.SubScopes[0]);
    38       // remove all variables
    39       foreach (IVariable var in scope.Variables)
    40         scope.RemoveVariable(var.Name);
     35      scope.Clear();
    4136      return null;
    4237    }
Note: See TracChangeset for help on using the changeset viewer.