Removes unused method declarations in MQTTMessage