Skip to content

Commit 3aab7b5

Browse files
committed
Remove Dispose in CodeExplorerVM as Dispose is called correctly in the commands.
1 parent 403e79e commit 3aab7b5

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

RetailCoder.VBE/Navigation/CodeExplorer/CodeExplorerViewModel.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace Rubberduck.Navigation.CodeExplorer
1717
{
18-
public class CodeExplorerViewModel : ViewModelBase, IDisposable
18+
public class CodeExplorerViewModel : ViewModelBase
1919
{
2020
private readonly FolderHelper _folderHelper;
2121
private readonly RubberduckParserState _state;
@@ -362,16 +362,5 @@ private void ExecuteRemoveComand(object param)
362362

363363
_externalRemoveCommand.Execute(param);
364364
}
365-
366-
public void Dispose()
367-
{
368-
foreach (var command in _commands)
369-
{
370-
if (command is IDisposable)
371-
{
372-
((IDisposable) command).Dispose();
373-
}
374-
}
375-
}
376365
}
377366
}

0 commit comments

Comments
 (0)