diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2011-03-24 23:09:19 -0500 |
---|---|---|
committer | Jonathan Nieder <jrnieder@gmail.com> | 2011-03-26 00:17:35 -0500 |
commit | 7e2fe3a9fc816391b322ad9b3f2adf9342631db6 (patch) | |
tree | dfff25606bdefe49287d379f2e3bc538af1013d3 /vcs-svn/line_buffer.c | |
parent | e7d04ee147dcbe6af1fa1d2147466696e2be31bc (diff) | |
download | git-7e2fe3a9fc816391b322ad9b3f2adf9342631db6.tar.gz |
vcs-svn: remove buffer_read_string
All previous users of buffer_read_string have already been converted
to use the more intuitive buffer_read_binary, so remove the old API to
avoid some confusion.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'vcs-svn/line_buffer.c')
-rw-r--r-- | vcs-svn/line_buffer.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/vcs-svn/line_buffer.c b/vcs-svn/line_buffer.c index 33e733a04c..c39038723e 100644 --- a/vcs-svn/line_buffer.c +++ b/vcs-svn/line_buffer.c @@ -91,13 +91,6 @@ char *buffer_read_line(struct line_buffer *buf) return buf->line_buffer; } -char *buffer_read_string(struct line_buffer *buf, uint32_t len) -{ - strbuf_reset(&buf->blob_buffer); - strbuf_fread(&buf->blob_buffer, len, buf->infile); - return ferror(buf->infile) ? NULL : buf->blob_buffer.buf; -} - void buffer_read_binary(struct line_buffer *buf, struct strbuf *sb, uint32_t size) { @@ -134,5 +127,4 @@ off_t buffer_skip_bytes(struct line_buffer *buf, off_t nbytes) void buffer_reset(struct line_buffer *buf) { - strbuf_release(&buf->blob_buffer); } |