summaryrefslogtreecommitdiff
path: root/src/client/model
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-29 14:50:21 +0200
committerAlon Levy <alon@pobox.com>2015-01-05 13:23:57 +0200
commit304ff56ede5803daf7820a9aafba77932e79412a (patch)
tree3f4ad98036e19773da7782ebb6c87e5d86e9bf7b /src/client/model
parent86d6e495bf1f9359e852bd391bf5baedf6b0e267 (diff)
client/model/graph: remove editLink, no longer used (superceded by update_link)
Diffstat (limited to 'src/client/model')
-rw-r--r--src/client/model/graph.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/client/model/graph.js b/src/client/model/graph.js
index 000f675b..4d6e1911 100644
--- a/src/client/model/graph.js
+++ b/src/client/model/graph.js
@@ -442,19 +442,6 @@ function Graph() {
}
this.addLink = addLink;
- this.editLink = function(src_id, dst_id, newname, newstate) {
- var link = findLink(src_id, dst_id, newname);
-
- if (link === undefined) {
- return;
- }
- link.name = newname;
- if (newstate !== undefined) {
- link.state = newstate;
- }
- rz_bus.names.push([newname]);
- }
-
this.update_link = function(link, new_link_spec, on_success, on_error) {
util.assert(link instanceof model_core.Link);