diff options
author | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2019-06-24 20:11:16 +0300 |
---|---|---|
committer | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2019-07-01 11:31:36 +0300 |
commit | c60593e956b8a77992f60343931528b8ebd56392 (patch) | |
tree | c17ff716c54e057974fda2c4422a55f8ec0788b5 /main/src/core/MonoDevelop.Core | |
parent | 84d8eff3058783f65d310ebe4c8601fccad12ff7 (diff) |
[Projects] Remove unneeded check
The nestingRules list is now created the first time GetParentFile is called,
so when this code is hit, the list should already have been created.
Diffstat (limited to 'main/src/core/MonoDevelop.Core')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects.FileNesting/NestingRulesProvider.cs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.FileNesting/NestingRulesProvider.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.FileNesting/NestingRulesProvider.cs index 6e8b186fa4..307c11dafa 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.FileNesting/NestingRulesProvider.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.FileNesting/NestingRulesProvider.cs @@ -62,10 +62,6 @@ namespace MonoDevelop.Projects.FileNesting void AddRule (NestingRuleKind kind, string appliesTo, IEnumerable<string> patterns) { - if (nestingRules == null) { - nestingRules = new List<NestingRule> (); - } - nestingRules.Add (new NestingRule (kind, appliesTo, patterns)); LoggingService.LogInfo ($"Added nesting rule of type {kind} for {appliesTo} on files [{String.Join (", ", patterns)}]"); } |