summaryrefslogtreecommitdiff
path: root/abspath.c
diff options
context:
space:
mode:
authorAlexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>2020-03-10 13:11:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-03-10 18:41:40 (GMT)
commit4530a85b4c34f009b5f190eb2dc8367801de5028 (patch)
tree8e6a4c01147521978d89637b87d50ab75546d647 /abspath.c
parent3d7747e318532a36a263c61cdf92f2decb6424ff (diff)
downloadgit-4530a85b4c34f009b5f190eb2dc8367801de5028.zip
git-4530a85b4c34f009b5f190eb2dc8367801de5028.tar.gz
git-4530a85b4c34f009b5f190eb2dc8367801de5028.tar.bz2
real_path_if_valid(): remove unsafe API
This commit continues the work started with previous commit. Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'abspath.c')
-rw-r--r--abspath.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/abspath.c b/abspath.c
index d34026b..6f15a41 100644
--- a/abspath.c
+++ b/abspath.c
@@ -202,16 +202,6 @@ error_out:
return retval;
}
-/*
- * Resolve `path` into an absolute, cleaned-up path. The return value
- * comes from a shared buffer.
- */
-const char *real_path_if_valid(const char *path)
-{
- static struct strbuf realpath = STRBUF_INIT;
- return strbuf_realpath(&realpath, path, 0);
-}
-
char *real_pathdup(const char *path, int die_on_error)
{
struct strbuf realpath = STRBUF_INIT;