@@ -21,12 +21,6 @@ module Inspection
2121 # @return [Integer] Resolution of H3 index
2222 attach_function :resolution , :h3GetResolution , %i[ h3_index ] , Resolution
2323
24- # @deprecated Please use {#resolution} instead.
25- def h3_resolution ( h3_index )
26- resolution ( h3_index )
27- end
28- deprecate :h3_resolution , :resolution , 2020 , 1
29-
3024 # @!method base_cell(h3_index)
3125 #
3226 # Derives the base cell number of the given H3 index
@@ -40,12 +34,6 @@ def h3_resolution(h3_index)
4034 # @return [Integer] Base cell number
4135 attach_function :base_cell , :h3GetBaseCell , %i[ h3_index ] , :int
4236
43- # @deprecated Please use {#base_cell} instead.
44- def h3_base_cell ( h3_index )
45- base_cell ( h3_index )
46- end
47- deprecate :h3_base_cell , :base_cell , 2020 , 1
48-
4937 # @!method from_string(h3_string)
5038 #
5139 # Derives the H3 index for a given hexadecimal string representation.
@@ -59,12 +47,6 @@ def h3_base_cell(h3_index)
5947 # @return [Integer] H3 index
6048 attach_function :from_string , :stringToH3 , %i[ string ] , :h3_index
6149
62- # @deprecated Please use {#from_string} instead.
63- def string_to_h3 ( string )
64- from_string ( string )
65- end
66- deprecate :string_to_h3 , :from_string , 2020 , 1
67-
6850 # @!method pentagon?(h3_index)
6951 #
7052 # Determine whether the given H3 index is a pentagon.
@@ -78,12 +60,6 @@ def string_to_h3(string)
7860 # @return [Boolean] True if the H3 index is a pentagon.
7961 attach_predicate_function :pentagon? , :h3IsPentagon , %i[ h3_index ] , :bool
8062
81- # @deprecated Please use {#pentagon?} instead.
82- def h3_pentagon? ( h3_index )
83- pentagon? ( h3_index )
84- end
85- deprecate :h3_pentagon? , :pentagon? , 2020 , 1
86-
8763 # @!method class_3_resolution?(h3_index)
8864 #
8965 # Determine whether the given H3 index has a resolution with
@@ -98,12 +74,6 @@ def h3_pentagon?(h3_index)
9874 # @return [Boolean] True if the H3 index has a class III resolution.
9975 attach_predicate_function :class_3_resolution? , :h3IsResClassIII , %i[ h3_index ] , :bool
10076
101- # @deprecated Please use {#class_3_resolution?} instead.
102- def h3_res_class_3? ( h3_index )
103- class_3_resolution? ( h3_index )
104- end
105- deprecate :h3_res_class_3? , :class_3_resolution? , 2020 , 1
106-
10777 # @!method valid?(h3_index)
10878 #
10979 # Determine whether the given H3 index is valid.
@@ -117,12 +87,6 @@ def h3_res_class_3?(h3_index)
11787 # @return [Boolean] True if the H3 index is valid.
11888 attach_predicate_function :valid? , :h3IsValid , %i[ h3_index ] , :bool
11989
120- # @deprecated Please use {#valid?} instead.
121- def h3_valid? ( h3_index )
122- valid? ( h3_index )
123- end
124- deprecate :h3_valid? , :valid? , 2020 , 1
125-
12690 # Derives the hexadecimal string representation for a given H3 index.
12791 #
12892 # @param [Integer] h3_index A valid H3 index.
@@ -138,12 +102,6 @@ def to_string(h3_index)
138102 h3_str . read_string
139103 end
140104
141- # @deprecated Please use {#to_string} instead.
142- def h3_to_string ( h3_index )
143- to_string ( h3_index )
144- end
145- deprecate :h3_to_string , :to_strings , 2020 , 1
146-
147105 # @!method max_face_count(h3_index)
148106 #
149107 # Returns the maximum number of icosahedron faces the given H3 index may intersect.
@@ -173,11 +131,5 @@ def faces(h3_index)
173131 # The C function returns a sparse array whose holes are represented by -1.
174132 out . read_array_of_int ( max_faces ) . reject ( &:negative? ) . sort
175133 end
176-
177- # @deprecated Please use {#faces} instead.
178- def h3_faces ( h3_index )
179- faces ( h3_index )
180- end
181- deprecate :h3_faces , :faces , 2020 , 1
182134 end
183135end
0 commit comments