mirror of
https://github.com/janet-lang/janet
synced 2024-12-24 07:20:27 +00:00
Remove some old code.
This commit is contained in:
parent
e85809a98a
commit
018f4e0891
@ -442,7 +442,6 @@ void janet_collect(void) {
|
||||
uint32_t i;
|
||||
if (janet_vm.gc_suspend) return;
|
||||
depth = JANET_RECURSION_GUARD;
|
||||
fprintf(stderr, "gccollect\n");
|
||||
janet_vm.gc_mark_phase = 1;
|
||||
/* Try and prevent many major collections back to back.
|
||||
* A full collection will take O(janet_vm.block_count) time.
|
||||
|
@ -164,7 +164,6 @@ JanetAsyncStatus net_machine_connect(JanetListenerState *s, JanetAsyncEvent even
|
||||
}
|
||||
|
||||
static void net_sched_connect(JanetStream *stream) {
|
||||
Janet err;
|
||||
JanetListenerState *s = janet_listen(stream, net_machine_connect, JANET_ASYNC_LISTEN_WRITE, sizeof(NetStateConnect), NULL);
|
||||
NetStateConnect *state = (NetStateConnect *)s;
|
||||
state->did_connect = 0;
|
||||
@ -173,7 +172,6 @@ static void net_sched_connect(JanetStream *stream) {
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/* State machine for accepting connections. */
|
||||
|
||||
#ifdef JANET_WINDOWS
|
||||
@ -569,8 +567,6 @@ JANET_CORE_FN(cfun_net_connect,
|
||||
Janet lasterr = janet_ev_lasterr();
|
||||
janet_panicf("could not connect socket: %V", lasterr);
|
||||
}
|
||||
} else {
|
||||
return janet_wrap_abstract(stream);
|
||||
}
|
||||
|
||||
net_sched_connect(stream);
|
||||
|
Loading…
Reference in New Issue
Block a user