aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/EdgeView.cpp14
-rw-r--r--src/gui/EdgeView.hpp2
2 files changed, 1 insertions, 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<NodeView> dst,
SharedPtr<Machina::Edge> edge);
- SharedPtr<Machina::Edge> edge() { return _edge; }
-
void show_label(bool show);
void update();