diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-11-14 00:24:22 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-11-14 00:24:22 +0300 |
| commit | 59a1201da959ab01895361c0b5bb8bc1409f2b39 (patch) | |
| tree | 7fc38be0c61c88d12dd665b67f42ac1c0b437065 /py/stream.c | |
| parent | 99e5badeb1e2e6aeffd3b3d56902d4257e168326 (diff) | |
all: Remove readall() method, which is equivalent to read() w/o args.
Its addition was due to an early exploration on how to add CPython-like
stream interface. It's clear that it's not needed and just takes up
bytes in all ports.
Diffstat (limited to 'py/stream.c')
| -rw-r--r-- | py/stream.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/py/stream.c b/py/stream.c index dadfcf5d6..c915110e0 100644 --- a/py/stream.c +++ b/py/stream.c @@ -361,7 +361,6 @@ STATIC mp_obj_t stream_readall(mp_obj_t self_in) { vstr.len = total_size; return mp_obj_new_str_from_vstr(STREAM_CONTENT_TYPE(stream_p), &vstr); } -MP_DEFINE_CONST_FUN_OBJ_1(mp_stream_readall_obj, stream_readall); // Unbuffered, inefficient implementation of readline() for raw I/O files. STATIC mp_obj_t stream_unbuffered_readline(size_t n_args, const mp_obj_t *args) { |
