Remove unused get_new_message_flag()