From 8d58ffb022649fd8a28d2f74845fc8ca5c934029 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sat, 29 Jul 2017 01:48:01 +0200 Subject: Remove attribute(__unused__) usage Just omitting the parameter name is more portable and less to write --- src/gui_plainattrtext.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/gui_plainattrtext.cc') diff --git a/src/gui_plainattrtext.cc b/src/gui_plainattrtext.cc index a588172..1b90f4b 100644 --- a/src/gui_plainattrtext.cc +++ b/src/gui_plainattrtext.cc @@ -8,7 +8,7 @@ namespace { class PlainAttributedTextImpl : public PlainAttributedText { public: - void append(const char* str, size_t len, Attribute const& UNUSED(attr), + void append(const char* str, size_t len, Attribute const&, size_t start, size_t length) override { if (!str || start >= len) return; length = std::min(len - start, length); @@ -16,13 +16,11 @@ public: text_.append(str + start, length); } - void add(Attribute const& UNUSED(attr), size_t UNUSED(start), - size_t UNUSED(length)) override { + void add(Attribute const&, size_t, size_t) override { } - void set(Attribute const& UNUSED(attr), size_t UNUSED(start), - size_t UNUSED(length)) override { + void set(Attribute const&, size_t, size_t) override { } - void clear(size_t UNUSED(start), size_t UNUSED(length)) override { + void clear(size_t, size_t) override { } std::string text() const override { -- cgit v1.2.3-70-g09d2