Skip to content

Commit 71bee63

Browse files
committed
remove unused code
1 parent 832e2d0 commit 71bee63

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

ext/standard/php_fopen_wrapper.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,11 @@ static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count
7979
{
8080
php_stream_input_t *input = stream->abstract;
8181
size_t read;
82-
//fprintf(stderr, "Attempt to read %lu bytes (%lu)\n", count, SG(read_post_bytes));
8382

8483
if (!SG(post_read) && SG(read_post_bytes) < input->position + count) {
8584
/* read requested data from SAPI */
8685
int read_bytes = sapi_read_post_block(buf, count TSRMLS_CC);
8786

88-
//fprintf(stderr, "Did read %d bytes\n", read_bytes);
8987
if (read_bytes > 0) {
9088
php_stream_seek(*input->body_ptr, 0, SEEK_END);
9189
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
105103
}
106104
/* }}} */
107105

108-
static size_t php_stream_input_read_x(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */
109-
{
110-
php_stream_input_t *input = stream->abstract;
111-
php_stream *inner = *input->body_ptr;
112-
113-
if (inner && inner->ops->read) {
114-
size_t read = inner->ops->read(inner, buf, count TSRMLS_CC);
115-
stream->eof = inner->eof;
116-
return read;
117-
}
118-
return -1;
119-
}
120-
/* }}} */
121-
122106
static int php_stream_input_close(php_stream *stream, int close_handle TSRMLS_DC) /* {{{ */
123107
{
124108
efree(stream->abstract);

0 commit comments

Comments
 (0)