Remove obviously dead/redundant code.

This commit is contained in:
David Robillard 2014-11-18 02:36:28 -05:00
parent 07d4f50689
commit 976a150e6b
4 changed files with 2 additions and 9 deletions

View File

@ -296,7 +296,6 @@ ARDOUR_UI_UTILS::rgba_from_style (string style, uint32_t r, uint32_t g, uint32_t
a = rc->fg[GTK_STATE_ACTIVE].red / 257;
}
} else if (attr == "bg") {
r = g = b = 0;
r = rc->bg[state].red / 257;
g = rc->bg[state].green / 257;
b = rc->bg[state].blue / 257;

View File

@ -209,8 +209,6 @@ RBEffect::run (boost::shared_ptr<Region> r, Progress* progress)
for (uint32_t i = 0; i < channels; ++i) {
this_read = 0;
framepos_t this_time;
this_time = min(bufsize, read_duration - pos);
@ -251,7 +249,6 @@ RBEffect::run (boost::shared_ptr<Region> r, Progress* progress)
for (uint32_t i = 0; i < channels; ++i) {
this_read = 0;
framepos_t this_time;
this_time = min(bufsize, read_duration - pos);

View File

@ -572,9 +572,6 @@ MotionFeedback::core_draw (cairo_t* cr, int phase, double size, double progress_
xc = (xorigin + (size / 2.0)) * (1.0/scale_factor);
yc = (yorigin + (size / 2.0)) * (1.0/scale_factor);
start_angle = 0.0;
end_angle = 0.0;
value_angle = 0.0;
value = (phase * 1.0) / (65 - 1);
start_angle = ((180 - 65) * G_PI) / 180;

View File

@ -170,9 +170,9 @@ Scroomer::on_motion_notify_event (GdkEventMotion* ev)
page = min(page, adj.get_upper() - val);
} else if (ev->x < 0) {
/* on zoom out increase the page size as well as moving the range towards the mouse pos*/
zoom = abs(ev->x);
/*zoom = abs(ev->x);
/*double higher = unzoomed_val + unzoomed_page - half_min_page - val_at_pointer;
double higher = unzoomed_val + unzoomed_page - half_min_page - val_at_pointer;
double lower = val_at_pointer - (unzoomed_val + half_min_page);
higher *= zoom / 128;