projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1c29a9
)
NO-OP: cleanup
author
Robin Gareus
<robin@gareus.org>
Fri, 23 Aug 2019 13:50:26 +0000
(15:50 +0200)
committer
Robin Gareus
<robin@gareus.org>
Fri, 23 Aug 2019 13:50:26 +0000
(15:50 +0200)
* remove unused code
* replace "default" to check for switch() enum completeness
libs/widgets/ardour_icon.cc
patch
|
blob
|
history
diff --git
a/libs/widgets/ardour_icon.cc
b/libs/widgets/ardour_icon.cc
index 1f54b6721761981ca1807ccb52bdc419ad3f6ed1..837d6f6f11406c8ff5ae4db50b1a1ea22e01b144 100644
(file)
--- a/
libs/widgets/ardour_icon.cc
+++ b/
libs/widgets/ardour_icon.cc
@@
-1083,7
+1083,6
@@
static void icon_bypass (cairo_t *cr, const int width, const int height, const u
const double y0 = height * .6;
const double r = std::min (x, y) * .75;
const double o = std::min (x, y) * .275;
- const double ar = std::min (x, y) * .15;
const double pt = std::min (x, y) * .125;
const double dashes[] = { 1, pt };
@@
-1326,7
+1325,7
@@
ArdourWidgets::ArdourIcon::render (cairo_t *cr,
case PowerOnOff: /* unused */
icon_on_off (cr, width, height, fg_color);
break;
-
default
:
+
case NoIcon
:
rv = false;
break;
}