Remove unnecessary debug code