mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
reflog: remove unused sys functions
The `git_reflog_entry__alloc` function is not actually defined, nor used. Remove references to it in the headers. It is not clear why the corresponding `__free` is, or should be, exported. Make it internal to the library.
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) the libgit2 contributors. All rights reserved.
|
||||
*
|
||||
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
||||
* a Linking Exception. For full terms see the included COPYING file.
|
||||
*/
|
||||
#ifndef INCLUDE_sys_git_reflog_h__
|
||||
#define INCLUDE_sys_git_reflog_h__
|
||||
|
||||
#include "git2/common.h"
|
||||
#include "git2/types.h"
|
||||
#include "git2/oid.h"
|
||||
|
||||
GIT_BEGIN_DECL
|
||||
|
||||
GIT_EXTERN(git_reflog_entry *) git_reflog_entry__alloc(void);
|
||||
GIT_EXTERN(void) git_reflog_entry__free(git_reflog_entry *entry);
|
||||
|
||||
GIT_END_DECL
|
||||
|
||||
#endif
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <git2/branch.h>
|
||||
#include <git2/sys/refdb_backend.h>
|
||||
#include <git2/sys/refs.h>
|
||||
#include <git2/sys/reflog.h>
|
||||
|
||||
#define DEFAULT_NESTING_LEVEL 5
|
||||
#define MAX_NESTING_LEVEL 10
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include "refdb.h"
|
||||
|
||||
#include "git2/sys/refdb_backend.h"
|
||||
#include "git2/sys/reflog.h"
|
||||
|
||||
void git_reflog_entry__free(git_reflog_entry *entry)
|
||||
{
|
||||
|
||||
@@ -37,4 +37,6 @@ GIT_INLINE(size_t) reflog_inverse_index(size_t idx, size_t total)
|
||||
return (total - 1) - idx;
|
||||
}
|
||||
|
||||
void git_reflog_entry__free(git_reflog_entry *entry);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user