Re: [PATCH] Remove redundant close_ref function

2014-04-08 Thread Junio C Hamano
Ronnie Sahlberg writes: > List, > > This is a trivial patch that removes the function close_ref() from refs.c. > This function was only called from two codepaths and can be removed since > both codepaths shortly afterwards > both call unlock_ref() which implicitely closes the file anyway. > > By

[PATCH] Remove redundant close_ref function

2014-04-08 Thread Ronnie Sahlberg
List, This is a trivial patch that removes the function close_ref() from refs.c. This function was only called from two codepaths and can be removed since both codepaths shortly afterwards both call unlock_ref() which implicitely closes the file anyway. By removing this function we simplify the