Commit 42205e72d77162c0000dbfbadb94f2d2c62511e1

Edward Thomson 2021-11-11T16:09:49

Merge pull request #6111 from libgit2/ethomson/str_free str: git_str_free is never a function

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/str.c b/src/str.c
index 7b50800..9d579f1 100644
--- a/src/str.c
+++ b/src/str.c
@@ -132,13 +132,6 @@ void git_str_dispose(git_str *buf)
 	git_str_init(buf, 0);
 }
 
-#ifndef GIT_DEPRECATE_HARD
-void git_str_free(git_str *buf)
-{
-	git_str_dispose(buf);
-}
-#endif
-
 void git_str_clear(git_str *buf)
 {
 	buf->size = 0;