Removed the vacuous replay_patches function.
Removed useless variable patches_serialized_size_at_start.
Removed empty function flush_prepare_patches.