Remove unneeded debug code