drawPalette(): code cleanup

Remove commented-out code and unreachable code.