From d6ed3f15d3ddb5db738587bb9c24cdddcf2427b4 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 22 May 2007 16:07:10 -0400 Subject: [PATCH] remove one of the functions just added, it was broken by design --- src/ply-utils.c | 12 +----------- src/ply-utils.h | 5 +++-- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/ply-utils.c b/src/ply-utils.c index c8803200..6ad5f572 100644 --- a/src/ply-utils.c +++ b/src/ply-utils.c @@ -104,7 +104,7 @@ ply_write (int fd, return bytes_left_to_write == 0; } -static ssize_t +ssize_t ply_read_some_bytes (int fd, void *buffer, size_t max_bytes) @@ -152,16 +152,6 @@ ply_read (int fd, return ply_read_some_bytes (fd, buffer, number_of_bytes) == number_of_bytes; } -ssize_t -ply_read_chunk (int fd, - void *buffer) -{ - assert (fd >= 0); - assert (!ply_fd_may_block (fd)); - - return ply_read_some_bytes (fd, buffer, 4096); -} - bool ply_fd_has_data (int fd) { diff --git a/src/ply-utils.h b/src/ply-utils.h index f8135d75..6c8c5106 100644 --- a/src/ply-utils.h +++ b/src/ply-utils.h @@ -47,8 +47,9 @@ bool ply_write (int fd, bool ply_read (int fd, void *buffer, size_t number_of_bytes); -ssize_t ply_read_chunk (int fd, - void *chunk); +ssize_t ply_read_some_bytes (int fd, + void *buffer, + size_t max_bytes); bool ply_fd_has_data (int fd); bool ply_fd_can_take_data (int fd);