Commit:    71bee63fad5418642c87c588cc9e22ca44186ce6
Author:    Michael Wallner <m...@php.net>         Tue, 10 Sep 2013 13:16:24 
+0200
Parents:   832e2d0d8c8bb11644fe34ec1685fc68d9b3a475
Branches:  master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=71bee63fad5418642c87c588cc9e22ca44186ce6

Log:
remove unused code

Changed paths:
  M  ext/standard/php_fopen_wrapper.c


Diff:
diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c
index aa7924d..27acb28 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);


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to