commit 4d7e408616beb70d105665703066d72ecc17f3ab
parent ac3e274cc0e76956d5035dd3b7f0d331cc9a3954
Author: Sebastian <sebastian@sebsite.pw>
Date: Mon, 6 Nov 2023 23:28:18 -0500
time::chrono: drop unused leapsecs parameter
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/time/chrono/leapsec.ha b/time/chrono/leapsec.ha
@@ -50,15 +50,12 @@ let utc_isinitialized: bool = false;
fn init_utc_leapsecs() (void | utciniterror) = {
const file = os::open(UTC_LEAPSECS_FILE)?;
defer io::close(file)!;
- parse_utc_leapsecs(file, &utc_leapsecs)?;
+ parse_utc_leapsecs(file)?;
};
// Parse UTC/TAI leap second data from [[UTC_LEAPSECS_FILE]].
// See file for format details.
-fn parse_utc_leapsecs(
- h: io::handle,
- leapsecs: *[](i64, i64),
-) (void | utf8::invalid | io::error) = {
+fn parse_utc_leapsecs(h: io::handle) (void | utf8::invalid | io::error) = {
for (true) {
const line = match (bufio::read_line(h)) {
case let err: io::error =>