summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2013-09-10 13:16:24 +0200
committerMichael Wallner <mike@php.net>2013-09-10 13:16:24 +0200
commit71bee63fad5418642c87c588cc9e22ca44186ce6 (patch)
tree7973a8c285d3d21b6384b58eeaf77a12865d60fe
parent832e2d0d8c8bb11644fe34ec1685fc68d9b3a475 (diff)
downloadphp-git-71bee63fad5418642c87c588cc9e22ca44186ce6.tar.gz
remove unused code
-rw-r--r--ext/standard/php_fopen_wrapper.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c
index aa7924d211..27acb28f52 100644
--- a/ext/standard/php_fopen_wrapper.c
+++ b/ext/standard/php_fopen_wrapper.c
@@ -79,13 +79,11 @@ static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count
{
php_stream_input_t *input = stream->abstract;
size_t read;
- //fprintf(stderr, "Attempt to read %lu bytes (%lu)\n", count, SG(read_post_bytes));
if (!SG(post_read) && SG(read_post_bytes) < input->position + count) {
/* read requested data from SAPI */
int read_bytes = sapi_read_post_block(buf, count TSRMLS_CC);
- //fprintf(stderr, "Did read %d bytes\n", read_bytes);
if (read_bytes > 0) {
php_stream_seek(*input->body_ptr, 0, SEEK_END);
php_stream_write(*input->body_ptr, buf, read_bytes);
@@ -105,20 +103,6 @@ static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count
}
/* }}} */
-static size_t php_stream_input_read_x(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */
-{
- php_stream_input_t *input = stream->abstract;
- php_stream *inner = *input->body_ptr;
-
- if (inner && inner->ops->read) {
- size_t read = inner->ops->read(inner, buf, count TSRMLS_CC);
- stream->eof = inner->eof;
- return read;
- }
- return -1;
-}
-/* }}} */
-
static int php_stream_input_close(php_stream *stream, int close_handle TSRMLS_DC) /* {{{ */
{
efree(stream->abstract);