mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Remove unused serialization functions
This commit is contained in:
@@ -49,13 +49,6 @@ export class UpdateCategoryBatteryLimitAction extends ParentAction {
|
||||
this.mobileLimit = mobileLimit
|
||||
}
|
||||
|
||||
serialize = (): SerializedUpdateCategoryBatteryLimitAction => ({
|
||||
type: 'UPDATE_CATEGORY_BATTERY_LIMIT',
|
||||
categoryId: this.categoryId,
|
||||
mobileLimit: this.mobileLimit,
|
||||
chargeLimit: this.chargeLimit
|
||||
})
|
||||
|
||||
static parse = ({ categoryId, chargeLimit, mobileLimit }: SerializedUpdateCategoryBatteryLimitAction) => (
|
||||
new UpdateCategoryBatteryLimitAction({ categoryId, chargeLimit, mobileLimit })
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user