Removed dead code that was causing warnings.