Removed unnecessary lines

I’m salvaging code from another project, and therefore the code is a
bit messy. I’m slowly going through and changing the code to make it
run a bit faster