Skip to content

Commit a82aa08

Browse files
committed
Make ruby_reset_leap_second_info internal
It is exported only for the extension library to test, but the method is no longer used since 29e31e7.
1 parent 6a1f5b6 commit a82aa08

File tree

4 files changed

+2
-17
lines changed

4 files changed

+2
-17
lines changed

ext/-test-/time/leap_second.c

Lines changed: 0 additions & 15 deletions
This file was deleted.

internal/time.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ struct timeval rb_time_timeval(VALUE);
2727

2828
RUBY_SYMBOL_EXPORT_BEGIN
2929
/* time.c (export) */
30-
void ruby_reset_leap_second_info(void);
3130
RUBY_SYMBOL_EXPORT_END
3231

3332
void ruby_reset_timezone(const char *);

test/ruby/test_time_tz.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: false
22
require 'test/unit'
3-
require '-test-/time'
43

54
class TestTimeTZ < Test::Unit::TestCase
65
has_right_tz = true

time.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,8 @@ get_tzname(int dst)
746746
}
747747
#endif
748748

749+
static void ruby_reset_leap_second_info(void);
750+
749751
void
750752
ruby_reset_timezone(const char *val)
751753
{

0 commit comments

Comments
 (0)