Removing an unused line of code