aboutsummaryrefslogtreecommitdiff
path: root/convert.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2007-09-03 20:08:01 +0200
committerJunio C Hamano <gitster@pobox.com>2007-09-03 16:46:23 -0700
commit89b4256cfbb8d878cc4cd1104ac4865ba1f2a58e (patch)
tree39ffb921b2d6874f5e56fc3bef8f7aac814fc6ad /convert.c
parent8460b2fcd45668d91567c36a22ea4f1b14ba133d (diff)
downloadgit-89b4256cfbb8d878cc4cd1104ac4865ba1f2a58e.tar.gz
git-89b4256cfbb8d878cc4cd1104ac4865ba1f2a58e.tar.xz
Remove unused function convert_sha1_file()
convert_sha1_file() became unused by the previous patch -- remove it. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'convert.c')
-rw-r--r--convert.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/convert.c b/convert.c
index 21908b103..d77c8eb8b 100644
--- a/convert.c
+++ b/convert.c
@@ -687,18 +687,3 @@ char *convert_to_working_tree(const char *path, const char *src, unsigned long *
return buf;
}
-
-void *convert_sha1_file(const char *path, const unsigned char *sha1,
- unsigned int mode, enum object_type *type,
- unsigned long *size)
-{
- void *buffer = read_sha1_file(sha1, type, size);
- if (S_ISREG(mode) && buffer) {
- void *converted = convert_to_working_tree(path, buffer, size);
- if (converted) {
- free(buffer);
- buffer = converted;
- }
- }
- return buffer;
-}