Fix dev warning. (#980)

This commit is contained in:
Arthur Sonzogni
2024-12-29 10:24:17 +01:00
committed by GitHub
parent 6fafa2dfed
commit f6a690a942
4 changed files with 4 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ class Unselectable : public NodeDecorator {
public:
using NodeDecorator::NodeDecorator;
void Select(Selection& selection) override {
void Select(Selection&) override {
// Overwrite the select method to do nothing.
}
};

View File

@@ -20,7 +20,7 @@ class SelectionStyleReset : public NodeDecorator {
void Render(Screen& screen) final {
auto old_style = screen.GetSelectionStyle();
screen.SetSelectionStyle([](Pixel& pixel) {});
screen.SetSelectionStyle([](Pixel&) {});
NodeDecorator::Render(screen);
screen.SetSelectionStyle(old_style);
}

View File

@@ -88,7 +88,6 @@ class Text : public Node {
bool has_selection = false;
int selection_start_ = 0;
int selection_end_ = -1;
std::function<void(Pixel& pixel)> selectionTransform;
};
class VText : public Node {