Remove useless function

master
Rohan Vazarkar 2016-09-21 14:49:24 -04:00
parent 3c97cf1ff5
commit f1d1ceb8c5
1 changed files with 0 additions and 33 deletions

View File

@ -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