com php-src: Remove unused smax member from memory stream: main/streams/memory.c
| From: | Nikita Popov | Date: | Fri, 18 Dec 2020 15:40:23 +0000 |
| Subject: | com php-src: Remove unused smax member from memory stream: main/streams/memory.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-114507@lists.php.net to get a copy of this message | ||
Commit: 9ec6392d809a5dbecaa66c373e2307f62bdf42e8
Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 18 Dec 2020 16:40:23 +0100
Parents: fd36b089cfb0ccf23f63d4c0ad26a617c9a4aaaf
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9ec6392d809a5dbecaa66c373e2307f62bdf42e8
Log:
Remove unused smax member from memory stream
Changed paths:
M main/streams/memory.c
Diff:
diff --git a/main/streams/memory.c b/main/streams/memory.c
index 0def3b1a3d7..bc8f7b99837 100644
--- a/main/streams/memory.c
+++ b/main/streams/memory.c
@@ -36,7 +36,6 @@ typedef struct {
char *data;
size_t fpos;
size_t fsize;
- size_t smax;
int mode;
} php_stream_memory_data;
@@ -304,7 +303,6 @@ PHPAPI php_stream *_php_stream_memory_create(int mode STREAMS_DC)
self->data = NULL;
self->fpos = 0;
self->fsize = 0;
- self->smax = ~0u;
self->mode = mode;
stream = php_stream_alloc_rel(&php_stream_memory_ops, self, 0, _php_stream_mode_to_str(mode));