git-compat-util.h: remove redundant code