lib/h3/miscellaneous.rb in h3-3.6.1 vs lib/h3/miscellaneous.rb in h3-3.6.2
- old
+ new
@@ -81,16 +81,10 @@
# 14117882
#
# @return [Integer] Number of unique hexagons
attach_function :hexagon_count, :numHexagons, [Resolution], :ulong_long
- # @deprecated Please use {#hexagon_count} instead.
- def num_hexagons(resolution)
- hexagon_count(resolution)
- end
- deprecate :num_hexagons, :hexagon_count, 2020, 1
-
# @!method rads_to_degs(rads)
#
# Convert a number expressed in radians to its equivalent in degrees.
#
# @param [Float] rads Value expressed in radians.
@@ -123,16 +117,10 @@
# 12
#
# @return [Integer] The number of pentagons per resolution.
attach_function :pentagon_count, :pentagonIndexCount, [], :int
- # @deprecated Please use {#base_cell_count} instead.
- def res_0_index_count
- base_cell_count
- end
- deprecate :res_0_index_count, :base_cell_count, 2020, 1
-
# Returns all resolution 0 hexagons (base cells).
#
# @example Return all base cells.
# H3.base_cells
# [576495936675512319, 576531121047601151, ..., 580753245698260991]
@@ -154,13 +142,7 @@
def pentagons(resolution)
out = H3Indexes.of_size(pentagon_count)
Bindings::Private.get_pentagon_indexes(resolution, out)
out.read
end
-
- # @deprecated Please use {#base_cells} instead.
- def res_0_indexes
- base_cells
- end
- deprecate :res_0_indexes, :base_cells, 2020, 1
end
end