summaryrefslogtreecommitdiff
path: root/builtin-mailsplit.c
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2009-08-05 03:31:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-08-05 19:13:58 (GMT)
commit6a2d3f50f5a509fdfefca371c7178e36c0bcf7e9 (patch)
tree1fd76c401a8a63d6c37163f94d1e04cb0fadab4c /builtin-mailsplit.c
parentc8f373a5ce8be2b85da25f1e3b1ef9056ecca4a6 (diff)
downloadgit-6a2d3f50f5a509fdfefca371c7178e36c0bcf7e9.zip
git-6a2d3f50f5a509fdfefca371c7178e36c0bcf7e9.tar.gz
git-6a2d3f50f5a509fdfefca371c7178e36c0bcf7e9.tar.bz2
builtin-mailsplit.c: remove read_line_with_nul() since it is no longer used
Signed-off-by: Brandon Casey <drafnel@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-mailsplit.c')
-rw-r--r--builtin-mailsplit.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/builtin-mailsplit.c b/builtin-mailsplit.c
index c2ec6ea..d288fde 100644
--- a/builtin-mailsplit.c
+++ b/builtin-mailsplit.c
@@ -45,24 +45,6 @@ static int is_from_line(const char *line, int len)
static struct strbuf buf = STRBUF_INIT;
-/* We cannot use fgets() because our lines can contain NULs */
-int read_line_with_nul(char *buf, int size, FILE *in)
-{
- int len = 0, c;
-
- for (;;) {
- c = getc(in);
- if (c == EOF)
- break;
- buf[len++] = c;
- if (c == '\n' || len + 1 >= size)
- break;
- }
- buf[len] = '\0';
-
- return len;
-}
-
/* Called with the first line (potentially partial)
* already in buf[] -- normally that should begin with
* the Unix "From " line. Write it into the specified