From cd3fab990cbbdb9c71f8563d3f8e113d4359f463 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Dec 2010 20:30:13 +0000 Subject: Tidy. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@2765 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/EdgeView.cpp | 14 +------------- src/gui/EdgeView.hpp | 2 -- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/gui/EdgeView.cpp b/src/gui/EdgeView.cpp index e8635a6..c72fc3f 100644 --- a/src/gui/EdgeView.cpp +++ b/src/gui/EdgeView.cpp @@ -82,14 +82,6 @@ EdgeView::length_hint() const void EdgeView::show_label(bool show) { - /* too slow - if (show) { - char label[4]; - snprintf(label, 4, "%3f", _edge->probability()); - set_label(label); - } else { - set_label(""); - }*/ show_handle(show); set_color(edge_color(_edge->probability())); } @@ -98,12 +90,8 @@ EdgeView::show_label(bool show) void EdgeView::update() { - if (_handle/* && _handle->text*/) { - /*char label[4]; - snprintf(label, 4, "%3f", _edge->probability()); - set_label(label);*/ + if (_handle) show_handle(true); - } set_color(edge_color(_edge->probability())); } diff --git a/src/gui/EdgeView.hpp b/src/gui/EdgeView.hpp index 411dc16..9179ea5 100644 --- a/src/gui/EdgeView.hpp +++ b/src/gui/EdgeView.hpp @@ -31,8 +31,6 @@ public: SharedPtr dst, SharedPtr edge); - SharedPtr edge() { return _edge; } - void show_label(bool show); void update(); -- cgit v1.2.1