summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-07-06 16:40:21 +0300
committerAlon Levy <alon@pobox.com>2015-07-06 16:40:21 +0300
commit8f351652c865161798d7bae53ae3e7ddf7fb8292 (patch)
tree40a9ef7353cfe3f4a75be4eaa268371699336707 /src/client
parent83554c8343f999a41104d173091fda91df226786 (diff)
client/graph_view: remove dead code
Diffstat (limited to 'src/client')
-rw-r--r--src/client/view/graph_view.js46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js
index f7afc733..5f451f73 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -712,52 +712,6 @@ function GraphView(spec) {
d.height = 900;
});
- // reorder nodes so selected are last, and so rendered last, and so on top.
- // FIXME: with b-ubble removed this is probably broken. actually also before. links are not correctly ordered.
- (function () {
- var ontop = [];
-
- node.each(function (d) {
- this.node = d;
- if (selection.node_selected(d)) {
- ontop.push(this);
- }
- });
- function reparent(new_parent, element) {
- if (element.parentNode == new_parent) {
- return;
- }
- new_parent.appendChild(element);
- }
- // move link to correct group
- // O(|links|*|ontop|)
- link.each(function (d) {
- if (ontop.some(function (node) {
- var d_node = node.node;
- return d.__src == d_node || d.__dst == d_node;
- }))
- {
- reparent(selected_link_group, this);
- } else {
- reparent(unselected_link_group, this);
- }
- });
- link_text.each(function (d) {
- if (selection.link_related(d)) {
- ontop.push(this);
- }
- });
- function moveToEnd(e) {
- e.parentNode.appendChild(e);
- }
- ontop.reverse().forEach(function (e) {
- moveToEnd(e);
- });
- var count_links = function() {
- return selected_link_group.childElementCount + unselected_link_group.childElementCount;
- };
- }); //();
-
function load_image(element, image_url, set_href) {
var image = new Image();