remove extradir patch related functions