浏览代码

Merge pull request #130 from RiveraGroup/bugfix/mongo_2.6.5_documentSource_Sort1

EAGLESIX-3083: Bugfixes to remove duplicate function and proper create v...
Chris Sexton 11 年之前
父节点
当前提交
c8b679e2b3
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1 8
      lib/pipeline/documentSources/SortDocumentSource.js

+ 1 - 8
lib/pipeline/documentSources/SortDocumentSource.js

@@ -61,13 +61,6 @@ proto.getLimit = function getLimit() {
 	return this.limitSrc ? this.limitSrc.getLimit() : -1;
 };
 
-proto.getDependencies = function getDependencies(deps) {
-	for(var i = 0; i < this.vSortKey.length; ++i) {
-		this.vSortKey[i].addDependencies(deps);
-	}
-	return DocumentSource.GetDepsReturn.SEE_NEXT;
-};
-
 proto.coalesce = function coalesce(nextSource) {
 	if (!this.limitSrc) {
 		if (nextSource instanceof LimitDocumentSource) {
@@ -398,7 +391,7 @@ proto.serializeSortKey = function serializeSortKey(explain) {
 klass.createFromJson = function createFromJson(elem, expCtx) {
 	if (typeof elem !== "object") throw new Error("code 15973; the " + klass.sortName + " key specification must be an object");
 
-	return this.create(expCtx, elem);
+	return klass.create(expCtx, elem);
 };
 
 /**