Removing Dead Code

Deleting some code that has since been moved to another function