13
0

NO-OP: cleanup

* remove unused code
* replace "default" to check for switch() enum completeness
This commit is contained in:
Robin Gareus 2019-08-23 15:50:26 +02:00
parent f1c29a9324
commit 000d331ea1
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 y0 = height * .6;
const double r = std::min (x, y) * .75; const double r = std::min (x, y) * .75;
const double o = std::min (x, y) * .275; 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 pt = std::min (x, y) * .125;
const double dashes[] = { 1, pt }; const double dashes[] = { 1, pt };
@ -1326,7 +1325,7 @@ ArdourWidgets::ArdourIcon::render (cairo_t *cr,
case PowerOnOff: /* unused */ case PowerOnOff: /* unused */
icon_on_off (cr, width, height, fg_color); icon_on_off (cr, width, height, fg_color);
break; break;
default: case NoIcon:
rv = false; rv = false;
break; break;
} }