Skip to content

Commit

Permalink
Remove pipeable implementation in syncfile.
Browse files Browse the repository at this point in the history
This is dead code after the removal of synchronous processes. Leave
the I/O vtable slot behind in io.h, since it'll soon be repurposed.
  • Loading branch information
jnthn committed Jun 26, 2017
1 parent 6667bc0 commit 3a4c23e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/io/syncfile.c
Expand Up @@ -362,7 +362,6 @@ static const MVMIOClosable closable = { closefh };
static const MVMIOSyncReadable sync_readable = { read_bytes, mvm_eof };
static const MVMIOSyncWritable sync_writable = { write_bytes, flush, truncatefh };
static const MVMIOSeekable seekable = { seek, mvm_tell };
static const MVMIOPipeable pipeable = { bind_stdio_handle };

This comment has been minimized.

Copy link
@zhuomingliang

zhuomingliang Jun 26, 2017

Member

The bind_stdio_handle still be here.

static void bind_stdio_handle(MVMThreadContext *tc, MVMOSHandle *h, uv_stdio_container_t *stdio) {

static const MVMIOLockable lockable = { lock, unlock };
static const MVMIOIntrospection introspection = { is_tty, mvm_fileno };

Expand All @@ -375,7 +374,7 @@ static const MVMIOOps op_table = {
NULL,
&seekable,
NULL,
&pipeable,
NULL,
&lockable,
&introspection,
&set_buffer_size,
Expand Down

0 comments on commit 3a4c23e

Please sign in to comment.