Skip to content

Commit a1f8f30

Browse files
committed
Remove unused methods
1 parent 128f123 commit a1f8f30

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/heatmap.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ end
5252

5353
Base.show(io::IO, h::TextHeatmap) = print_heatmap(io, h)
5454

55-
print_heatmap(h::TextHeatmap) = print_heatmap(stdout, h)
5655
function print_heatmap(io::IO, h::TextHeatmap)
5756
for (word, color) in zip(h.words, h.colors)
5857
print(io, set_crayon(color), word)
@@ -67,10 +66,8 @@ function set_crayon(bg::RGB{N0f8})
6766
return Crayon(; background=background, foreground=foreground)
6867
end
6968

70-
get_color_indices(c::Colorant) = get_color_indices(convert(RGB{N0f8}, c))
7169
get_color_indices(c::RGB{N0f8}) = (c.r.i, c.g.i, c.b.i)
7270

73-
is_background_bright(bg::Colorant) = is_background_bright(convert(RGB, bg))
7471
is_background_bright(bg::RGB) = luma(bg) > 0.5
7572
luma(c::RGB) = 0.2126 * c.r + 0.7152 * c.g + 0.0722 * c.b # using BT. 709 coefficients
7673

0 commit comments

Comments
 (0)