From f1d1ceb8c58438f117c94df9d8a34b75839cc305 Mon Sep 17 00:00:00 2001 From: Rohan Vazarkar Date: Wed, 21 Sep 2016 14:49:24 -0400 Subject: [PATCH] Remove useless function --- .../SearchContainer/SearchContainer.jsx | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/src/components/SearchContainer/SearchContainer.jsx b/src/components/SearchContainer/SearchContainer.jsx index 7c20ea5..a0d39f2 100644 --- a/src/components/SearchContainer/SearchContainer.jsx +++ b/src/components/SearchContainer/SearchContainer.jsx @@ -16,39 +16,6 @@ export default class SearchContainer extends Component { } } - _getSearchOptions(e, callback){ - var x = [] - var session = driver.session() - session.run("MATCH (n) WHERE n.name =~ '(?i).*{name}.*' RETURN n.name LIMIT 10", {name: e}) - .then(function(results){ - console.log(results) - }) - // var promise = $.ajax({ - // url: localStorage.getItem("dbpath") + "/db/data/transaction/commit", - // type: 'POST', - // accepts: { json: "application/json" }, - // dataType: "json", - // contentType: "application/json", - // headers: { - // "Authorization": localStorage.getItem("auth") - // }, - // data: JSON.stringify({ - // "statements": [{ - // "statement" : "MATCH (n) WHERE n.name =~ '(?i).*" + escapeRegExp(e) + ".*' RETURN n.name LIMIT 10" - // }] - // }), - // success: function(json) { - // $.each(json.results[0].data, function(index, d){ - // x.push({id:index, label:d.row[0]}) - // }) - // callback(null, { - // options: x, - // complete: false - // }) - // }.bind(this) - // }) - } - _onPathfindClick(){ jQuery(this.refs.pathfinding).slideToggle() var p = !this.state.pathfindingIsOpen