Skip to content

Commit

Permalink
remove unused args
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuomingliang committed May 29, 2017
1 parent 239c615 commit 7fd9a82
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/io/io.h
Expand Up @@ -97,8 +97,7 @@ struct MVMIOIntrospection {

/* Operations aiding process spawning and I/O handling. */
struct MVMIOPipeable {
void (*bind_stdio_handle) (MVMThreadContext *tc, MVMOSHandle *h, uv_stdio_container_t *stdio,
uv_process_t *process);
void (*bind_stdio_handle) (MVMThreadContext *tc, MVMOSHandle *h, uv_stdio_container_t *stdio);
};

MVMint64 MVM_io_close(MVMThreadContext *tc, MVMObject *oshandle);
Expand Down
2 changes: 1 addition & 1 deletion src/io/procops.c
Expand Up @@ -174,7 +174,7 @@ static void setup_process_stdio(MVMThreadContext *tc, MVMObject *handle, uv_proc
if (REPR(handle)->ID != MVM_REPR_ID_MVMOSHandle)
MVM_exception_throw_adhoc(tc, "%s requires an object with REPR MVMOSHandle (got %s with REPR %s)", op, STABLE(handle)->debug_name, REPR(handle)->name);

body.ops->pipeable->bind_stdio_handle(tc, ((MVMOSHandle *)handle), stdio, process);
body.ops->pipeable->bind_stdio_handle(tc, ((MVMOSHandle *)handle), stdio);
}
}
else
Expand Down
3 changes: 1 addition & 2 deletions src/io/syncfile.c
Expand Up @@ -298,8 +298,7 @@ static void truncatefh(MVMThreadContext *tc, MVMOSHandle *h, MVMint64 bytes) {
}

/* Operations aiding process spawning and I/O handling. */
static void bind_stdio_handle(MVMThreadContext *tc, MVMOSHandle *h, uv_stdio_container_t *stdio,
uv_process_t *process) {
static void bind_stdio_handle(MVMThreadContext *tc, MVMOSHandle *h, uv_stdio_container_t *stdio) {
MVMIOFileData *data = (MVMIOFileData *)h->body.data;
stdio->flags = UV_INHERIT_FD;
stdio->data.fd = data->fd;
Expand Down
3 changes: 1 addition & 2 deletions src/io/syncpipe.c
Expand Up @@ -56,8 +56,7 @@ static MVMint64 closefh(MVMThreadContext *tc, MVMOSHandle *h) {
}

/* Operations aiding process spawning and I/O handling. */
static void bind_stdio_handle(MVMThreadContext *tc, MVMOSHandle *h, uv_stdio_container_t *stdio,
uv_process_t *process) {
static void bind_stdio_handle(MVMThreadContext *tc, MVMOSHandle *h, uv_stdio_container_t *stdio) {
MVMIOSyncPipeData *data = (MVMIOSyncPipeData *)h->body.data;
stdio->flags = UV_INHERIT_STREAM;
stdio->data.stream = data->ss.handle;
Expand Down
3 changes: 1 addition & 2 deletions src/io/syncstream.c
Expand Up @@ -297,8 +297,7 @@ static MVMint64 mvm_fileno(MVMThreadContext *tc, MVMOSHandle *h) {
}

/* Operations aiding process spawning and I/O handling. */
static void bind_stdio_handle(MVMThreadContext *tc, MVMOSHandle *h, uv_stdio_container_t *stdio,
uv_process_t *process) {
static void bind_stdio_handle(MVMThreadContext *tc, MVMOSHandle *h, uv_stdio_container_t *stdio) {
MVMIOSyncStreamData *data = (MVMIOSyncStreamData *)h->body.data;
stdio->flags = UV_INHERIT_STREAM;
stdio->data.stream = data->handle;
Expand Down

0 comments on commit 7fd9a82

Please sign in to comment.