removed unused code

v1.18.x
barisusakli 9 years ago
parent 818c130339
commit 6ae8bacbab

@ -22,18 +22,13 @@ search.search = function(data, callback) {
return callback(err); return callback(err);
} }
data.search_query = validator.escape(query); data.search_query = validator.escape(data.query);
if (searchIn === 'titles' || searchIn === 'titlesposts') {
searchIn = 'posts';
}
data.time = (process.elapsedTimeSince(start) / 1000).toFixed(2); data.time = (process.elapsedTimeSince(start) / 1000).toFixed(2);
callback(null, data); callback(null, data);
} }
var start = process.hrtime(); var start = process.hrtime();
var query = data.query;
var searchIn = data.searchIn || 'titlesposts'; var searchIn = data.searchIn || 'titlesposts';
if (searchIn === 'posts' || searchIn === 'titles' || searchIn === 'titlesposts') { if (searchIn === 'posts' || searchIn === 'titles' || searchIn === 'titlesposts') {

Loading…
Cancel
Save