[runtime] Remove some dead code from the io-layer process code, avoid mixing ifdefs with control flow.