Removal of an unused variable since messagemode code was dropped from SP.