Skip to content

Commit 62a8072

Browse files
committed
Cleanup old API
1 parent 381c4a8 commit 62a8072

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

curious.js

-24
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,6 @@
33

44
(function(){
55

6-
var CuriousQuery = function() {
7-
this.terms = [];
8-
this.relationships = [];
9-
this.classes = [];
10-
};
11-
12-
CuriousQuery.prototype = {
13-
query: function() { return this.terms.join(' '); },
14-
add: function(term, relationship, klass) {
15-
this.terms.push(term);
16-
this.relationships.push(relationship);
17-
this.classes.push(klass);
18-
return this;
19-
},
20-
};
21-
226
var CuriousObjects = (function() {
237
function CuriousObject(hash_data) {
248
this.id = hash_data.id;
@@ -236,11 +220,6 @@
236220
return http.post(curious_url, args).success(post_cb);
237221
}
238222

239-
function query(query_object, cb, params, tree_cb) {
240-
var q = query_object.query();
241-
__get(q, params, query_object.relationships, query_object.classes, null, cb, tree_cb);
242-
}
243-
244223
function get(q, relationships, cb, params, tree_cb) {
245224
return __get(q, params, relationships, null, null, cb, tree_cb);
246225
}
@@ -262,7 +241,6 @@
262241
}
263242

264243
return {
265-
query: query,
266244
get: get,
267245
get_with_objs: get_with_objs,
268246
get_with_start: get_with_start
@@ -274,6 +252,4 @@
274252
else if (typeof exports !== 'undefined' && exports) { ex = exports; }
275253
ex.CuriousQ = CuriousQ;
276254
ex.CuriousObjects = CuriousObjects;
277-
ex.CuriousQuery = CuriousQuery;
278-
279255
})();

0 commit comments

Comments
 (0)