Skip to content

Commit 92f11cb

Browse files
committed
Removes unused methods
1 parent 02d4c06 commit 92f11cb

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,6 @@ const MongoClient = mongodb.MongoClient;
3131
const ReadPreference = mongodb.ReadPreference;
3232

3333
const MongoSchemaCollectionName = '_SCHEMA';
34-
35-
const storageAdapterAllCollections = mongoAdapter => {
36-
return mongoAdapter.connect()
37-
.then(() => mongoAdapter.database.collections())
38-
.then(collections => {
39-
return collections.filter(collection => {
40-
if (collection.namespace.match(/\.system\./)) {
41-
return false;
42-
}
43-
// TODO: If you have one app with a collection prefix that happens to be a prefix of another
44-
// apps prefix, this will go very very badly. We should fix that somehow.
45-
return (collection.collectionName.indexOf(mongoAdapter._collectionPrefix) == 0);
46-
});
47-
});
48-
}
49-
5034
const convertParseSchemaToMongoSchema = ({...schema}) => {
5135
delete schema.fields._rperm;
5236
delete schema.fields._wperm;

src/Adapters/Storage/StorageAdapter.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export interface StorageAdapter {
3131
createClass(className: string, schema: SchemaType): Promise<void>;
3232
addFieldIfNotExists(className: string, fieldName: string, type: any): Promise<void>;
3333
deleteClass(className: string): Promise<void>;
34-
deleteAllClasses(): Promise<void>;
3534
dropDatabase(): Promise<void>;
3635
deleteFields(className: string, schema: SchemaType, fieldNames: Array<string>): Promise<void>;
3736
getAllClasses(): Promise<StorageClass[]>;

0 commit comments

Comments
 (0)