Removed debug code

Woops, accidentally left a debug function behind.