diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-23 19:05:02 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-23 19:05:02 +0200 |
commit | 55cb4999720f46eddb97e25e7ddc6ac068dd0bae (patch) | |
tree | 73d3c2ec6d9d8e21b5f630dec8067e2153fbd2da /src/config.c | |
parent | 4bb6ffb6bb8ad9d49eb173350be965183cd09c96 (diff) | |
download | libgit2-cmn/config-refresh-remove.tar.gz |
config: remove the refresh function and backend fieldcmn/config-refresh-remove
We have been refreshing on read and write for a while now, so
git_config_refresh() is at best a no-op, and might just end up wasting
cycles.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/config.c b/src/config.c index 8a0fb653c..0f8c24465 100644 --- a/src/config.c +++ b/src/config.c @@ -326,23 +326,6 @@ int git_config_add_backend( return 0; } -int git_config_refresh(git_config *cfg) -{ - int error = 0; - size_t i; - - for (i = 0; i < cfg->files.length && !error; ++i) { - file_internal *internal = git_vector_get(&cfg->files, i); - git_config_backend *file = internal->file; - error = file->refresh(file); - } - - if (!error && GIT_REFCOUNT_OWNER(cfg) != NULL) - git_repository__cvar_cache_clear(GIT_REFCOUNT_OWNER(cfg)); - - return error; -} - /* * Loop over all the variables */ |