aboutsummaryrefslogtreecommitdiff
path: root/test-line-buffer.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-03-24 23:09:19 -0500
committerJonathan Nieder <jrnieder@gmail.com>2011-03-26 00:17:35 -0500
commit7e2fe3a9fc816391b322ad9b3f2adf9342631db6 (patch)
treedfff25606bdefe49287d379f2e3bc538af1013d3 /test-line-buffer.c
parente7d04ee147dcbe6af1fa1d2147466696e2be31bc (diff)
downloadgit-7e2fe3a9fc816391b322ad9b3f2adf9342631db6.tar.gz
git-7e2fe3a9fc816391b322ad9b3f2adf9342631db6.tar.xz
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 'test-line-buffer.c')
-rw-r--r--test-line-buffer.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/test-line-buffer.c b/test-line-buffer.c
index 25b20b93f..7ec9b13c9 100644
--- a/test-line-buffer.c
+++ b/test-line-buffer.c
@@ -32,12 +32,6 @@ static void handle_command(const char *command, const char *arg, struct line_buf
buffer_copy_bytes(buf, strtouint32(arg));
return;
}
- case 'r':
- if (!prefixcmp(command, "read ")) {
- const char *s = buffer_read_string(buf, strtouint32(arg));
- fputs(s, stdout);
- return;
- }
case 's':
if (!prefixcmp(command, "skip ")) {
buffer_skip_bytes(buf, strtouint32(arg));