Skip to content

Commit

Permalink
remove some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
awmleer committed Oct 15, 2018
1 parent 0f22316 commit 0abdb44
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/services/collection.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {Injectable} from '@angular/core';
import {Storage} from '@ionic/storage';
import {BookCollection} from '../classes/collection';
import {AccountService} from './account.service'
import {BookDetail} from '../classes/book'
Expand All @@ -10,7 +9,6 @@ export class CollectionService {
collections:BookCollection[] = null;

constructor(
private storage: Storage,
private accountSvc: AccountService,
private leanSvc: LeanService,
) {
Expand All @@ -32,10 +30,6 @@ export class CollectionService {
this.collections = await query.find();
}

saveCollections():Promise<void>{
return this.storage.set('collections',this.collections);
}

async getCollection(bookId: string): Promise<BookCollection> {
const query = this.getQuery();
query.equalTo('userId', this.accountSvc.user.id);
Expand Down

0 comments on commit 0abdb44

Please sign in to comment.