removing a giant amount of dead code that was not being used. we can always recover it from this commit if we want, but it was not being used and we should leave dead code lying around (especially on such a difficult to read page as it is)