diff options
author | Vicent Marti <tanoku@gmail.com> | 2013-03-15 12:24:20 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-03-15 12:24:20 +0100 |
commit | a5f6138407efb6d8866fe8de5aac13454aefcd82 (patch) | |
tree | 2e010db012499440b25b45b2e638cf00ab95ab4c /src/odb_pack.c | |
parent | f16fb09951cbd9f920e141a46fe5409d6ffebcb9 (diff) | |
download | libgit2-a5f6138407efb6d8866fe8de5aac13454aefcd82.tar.gz |
odb_pack: Unused functions
Diffstat (limited to 'src/odb_pack.c')
-rw-r--r-- | src/odb_pack.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c index 9779ecd25..7e6828eae 100644 --- a/src/odb_pack.c +++ b/src/odb_pack.c @@ -132,9 +132,6 @@ struct pack_writepack { * ***********************************************************/ -static void pack_window_free_all(struct pack_backend *backend, struct git_pack_file *p); -static int pack_window_contains(git_mwindow *win, off_t offset); - static int packfile_sort__cb(const void *a_, const void *b_); static int packfile_load__cb(void *_data, git_buf *path); @@ -162,23 +159,6 @@ static int pack_entry_find_prefix( * ***********************************************************/ -GIT_INLINE(void) pack_window_free_all(struct pack_backend *backend, struct git_pack_file *p) -{ - GIT_UNUSED(backend); - git_mwindow_free_all(&p->mwf); -} - -GIT_INLINE(int) pack_window_contains(git_mwindow *win, off_t offset) -{ - /* We must promise at least 20 bytes (one hash) after the - * offset is available from this window, otherwise the offset - * is not actually in this window and a different window (which - * has that one hash excess) must be used. This is to support - * the object header and delta base parsing routines below. - */ - return git_mwindow_contains(win, offset + 20); -} - static int packfile_sort__cb(const void *a_, const void *b_) { const struct git_pack_file *a = a_; |