Remove unused serialization functions

This commit is contained in:
Jonas Lochmann
2020-09-21 02:00:00 +02:00
parent 32d35dda22
commit 62f4e368a6
55 changed files with 42 additions and 393 deletions
-11
View File
@@ -91,17 +91,6 @@ export class AddUsedTimeActionVersion2 extends AppLogicAction {
this.trustedTimestamp = trustedTimestamp
}
serialize = (): SerializedAddUsedTimeActionVersion2 => ({
type: 'ADD_USED_TIME_V2',
d: this.dayOfEpoch,
i: this.items.map((item) => ({
categoryId: item.categoryId,
tta: item.timeToAdd,
etts: item.extraTimeToSubtract
})),
t: this.trustedTimestamp
})
static parse = ({ d, i, t }: SerializedAddUsedTimeActionVersion2) => (
new AddUsedTimeActionVersion2({
dayOfEpoch: d,