diff --git a/meson.build b/meson.build index cead1387bb..3ba7ec19b3 100644 --- a/meson.build +++ b/meson.build @@ -194,7 +194,6 @@ noun_src = ['noun/allocate.c', 'noun/zave.c'] vere_src = ['vere/ames.c', - #'vere/batz.c', 'vere/behn.c', 'vere/cttp.c', 'vere/foil.c', diff --git a/vere/batz.c b/vere/batz.c deleted file mode 100644 index 7d6b10db5f..0000000000 --- a/vere/batz.c +++ /dev/null @@ -1,91 +0,0 @@ -/* v/batz.c -** -** This file is in the public domain. -*/ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "all.h" -#include "vere/vere.h" - -/* u3_batz_io_init(): initialize batz timer. -*/ -void -u3_batz_io_init(void) -{ - u3_batz* beh_u = &u3_Host.beh_u; - - uv_timer_init(u3L, &beh_u->tim_u); - beh_u->alm = c3n; -} - -/* u3_batz_io_exit(): terminate timer. -*/ -void -u3_batz_io_exit(void) -{ -} - -/* _batz_time_cb(): timer callback. -*/ -static void -_batz_time_cb(uv_timer_t* tim_u) -{ - u3_batz* beh_u = &u3_Host.beh_u; - if(beh_u->run_w < 1024) { - beh_u->run_w++; - } - - u3_lo_open(); - { - u3_pier_plan - (u3nt(u3_blip, c3__batz, u3_nul), - u3nc(c3__wake, u3_nul)); - } - u3_lo_shut(c3n); -} - -/* u3_batz_io_poll(): update batz IO state. -*/ -void -u3_batz_io_poll(void) -{ - u3_batz* beh_u = &u3_Host.beh_u; - u3_noun wen = u3v_keep(u3nt(u3_blip, c3__batz, u3_nul)); - - if ( (u3_nul != wen) && - (c3y == u3du(wen)) && - (c3y == u3ud(u3t(wen))) ) - { - c3_d gap_d = u3_time_gap_ms(u3k(u3A->now), u3k(u3t(wen))); - - gap_d += beh_u->run_w; - - if ( c3y == beh_u->alm ) { - uv_timer_stop(&beh_u->tim_u); - } - else beh_u->alm = c3y; - - uv_timer_start(&beh_u->tim_u, _batz_time_cb, gap_d, 0); - } - else { - if ( c3y == beh_u->alm ) { - uv_timer_stop(&beh_u->tim_u); - } - beh_u->alm = c3n; - } - u3z(wen); -}