소스 검색

Removed unused methods

Taichi Masuyama 4 년 전
부모
커밋
0cffd0d239
1개의 변경된 파일0개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 10
      packages/app/src/server/models/page.ts

+ 0 - 10
packages/app/src/server/models/page.ts

@@ -344,16 +344,6 @@ schema.statics.findAncestorsChildrenByPathAndViewer = async function(path: strin
   return pathToChildren;
 };
 
-schema.statics.findAncestors = async function(targetPath: string, includeEmpty = true): Promise<PageDocument[]> {
-  const builder = new PageQueryBuilder(this.find(), includeEmpty);
-  const ancestors = await builder
-    .addConditionToListOnlyAncestors(targetPath)
-    .query
-    .exec();
-
-  return ancestors;
-};
-
 /*
  * Utils from obsolete-page.js
  */