Closed RPG-Alex closed 8 months ago
As far as I understand it, the compiler just throws a warning because the function is dead code (i.e. unused). I wrote this function to have a standardized constructor in case we want to create other gradients.
If this is really an issue, maybe this function could just be made const
and used to define DEFAULT_COLOR_GRADIENT
.
That makes sense. I was going to suggest keeping it as a constructor, but adding the _, but your solution has been implemented and will work too. Closing issue.
Given we had a few PRs together, I rebased the project and there now appears to be an used method in the color_gradient.rs:
Its showing through the warning when running
cargo check
It looks like this just hasn't been implemented yet, in which case we need to implement it, but if it was implemented and somehow lost in the rebase that needs to be fixed too.