There was a large lump of code inside an "if (false)" block. I commented it all...