Removed disposeDependencies.

closes #2552
Merge remote-tracking branch 'origin/master'