mirror of
https://github.com/Nezumi-2711/javascript-training.git
synced 2026-09-22 13:38:43 +00:00
Delete unnecessary code
This commit is contained in:
@@ -7,15 +7,15 @@ class LocalStorageService {
|
|||||||
this.localStorage.setItem(key, value);
|
this.localStorage.setItem(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
static get(key) {
|
get(key) {
|
||||||
this.localStorage.getItem(key);
|
this.localStorage.getItem(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static remove(key) {
|
remove(key) {
|
||||||
this.localStorage.removeItem(key);
|
this.localStorage.removeItem(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static clear() {
|
clear() {
|
||||||
this.localStorage.clear();
|
this.localStorage.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user