Remove Config#Refresh

Because it has been removed from libgit2:
55cb499972
This commit is contained in:
David Calavera 2014-10-24 17:22:46 -07:00
parent 41008af54c
commit 5c72fe54b8
1 changed files with 0 additions and 13 deletions

View File

@ -342,18 +342,6 @@ func OpenOndisk(parent *Config, path string) (*Config, error) {
return config, nil
}
// Refresh refreshes the configuration to reflect any changes made externally e.g. on disk
func (c *Config) Refresh() error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
if ret := C.git_config_refresh(c.ptr); ret < 0 {
return MakeGitError(ret)
}
return nil
}
type ConfigIterator struct {
ptr *C.git_config_iterator
}
@ -374,4 +362,3 @@ func (iter *ConfigIterator) Free() {
runtime.SetFinalizer(iter, nil)
C.free(unsafe.Pointer(iter.ptr))
}