remove the unnecessary patches