Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Oct 4, 2023
1 parent bf2e25b commit f1cfcaa
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/utilities/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,6 @@ function resample_cmap(cmap, ncolors::Integer; alpha=1.0)
end
end

"""
resampled_colors(attributes::Attributes, levels::Integer)
Resample the color attribute from `attributes`. Resamples `:colormap` if present,
or repeats `:color`.
"""
function resampled_colors(attributes, levels::Integer)
cols = if haskey(attributes, :color)
c = get_attribute(attributes, :color)
c isa AbstractVector ? resample(c, levels) : repeated(c, levels)
else
c = get_attribute(attributes, :colormap)
resample(c, levels)
end
end


"""
Like `get!(f, dict, key)` but also calls `f` and replaces `key` when the corresponding
value is nothing
Expand Down Expand Up @@ -288,7 +271,7 @@ function _replace!(target::Attributes, overwrite::Attributes)
for k in keys(target)
haskey(overwrite, k) && (target[k] = overwrite[k])
end
return
return
end


Expand Down

0 comments on commit f1cfcaa

Please sign in to comment.