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;
|
uint32_t i;
|
||||||
if (janet_vm.gc_suspend) return;
|
if (janet_vm.gc_suspend) return;
|
||||||
depth = JANET_RECURSION_GUARD;
|
depth = JANET_RECURSION_GUARD;
|
||||||
fprintf(stderr, "gccollect\n");
|
|
||||||
janet_vm.gc_mark_phase = 1;
|
janet_vm.gc_mark_phase = 1;
|
||||||
/* Try and prevent many major collections back to back.
|
/* Try and prevent many major collections back to back.
|
||||||
* A full collection will take O(janet_vm.block_count) time.
|
* 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) {
|
static void net_sched_connect(JanetStream *stream) {
|
||||||
Janet err;
|
|
||||||
JanetListenerState *s = janet_listen(stream, net_machine_connect, JANET_ASYNC_LISTEN_WRITE, sizeof(NetStateConnect), NULL);
|
JanetListenerState *s = janet_listen(stream, net_machine_connect, JANET_ASYNC_LISTEN_WRITE, sizeof(NetStateConnect), NULL);
|
||||||
NetStateConnect *state = (NetStateConnect *)s;
|
NetStateConnect *state = (NetStateConnect *)s;
|
||||||
state->did_connect = 0;
|
state->did_connect = 0;
|
||||||
@ -173,7 +172,6 @@ static void net_sched_connect(JanetStream *stream) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* State machine for accepting connections. */
|
/* State machine for accepting connections. */
|
||||||
|
|
||||||
#ifdef JANET_WINDOWS
|
#ifdef JANET_WINDOWS
|
||||||
@ -569,8 +567,6 @@ JANET_CORE_FN(cfun_net_connect,
|
|||||||
Janet lasterr = janet_ev_lasterr();
|
Janet lasterr = janet_ev_lasterr();
|
||||||
janet_panicf("could not connect socket: %V", lasterr);
|
janet_panicf("could not connect socket: %V", lasterr);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
return janet_wrap_abstract(stream);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
net_sched_connect(stream);
|
net_sched_connect(stream);
|
||||||
|
Loading…
Reference in New Issue
Block a user