Skip to content

Commit

Permalink
removed unused getPayment method
Browse files Browse the repository at this point in the history
  • Loading branch information
Raboro committed Sep 21, 2023
1 parent c794540 commit 1818301
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/logic/Storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,6 @@ export default class Storage {
}
}

async getPayment(key: string): Promise<Payment | null> {
try {
const item = await AsyncStorage.getItem(key);
if (item === null) return null;
const parsed = JSON.parse(item);
return new Payment(parsed.value, parsed.id);
} catch (e) {
console.error('ERROR' + e);
}
return null;
}

async updatePayment(payment: Payment): Promise<void> {
try {
await AsyncStorage.mergeItem(payment.getKey(), payment.toStorage());
Expand Down

0 comments on commit 1818301

Please sign in to comment.