Remove debugging code

I guess this is left over from testing
Merge pull request #5544 from lichesser/patch-1

Remove testing code