chore: remove dead code (#11451)
This commit is contained in:
parent
0e30e819e6
commit
7fa3d252c9
18 changed files with 6 additions and 699 deletions
|
|
@ -1,21 +0,0 @@
|
|||
package settings
|
||||
|
||||
import "github.com/evcc-io/evcc/api/store"
|
||||
|
||||
type storer struct {
|
||||
key string
|
||||
}
|
||||
|
||||
var _ store.Store = (*storer)(nil)
|
||||
|
||||
func NewStore(key string) store.Store {
|
||||
return &storer{key: key}
|
||||
}
|
||||
|
||||
func (s *storer) Load(res any) error {
|
||||
return Json(s.key, &res)
|
||||
}
|
||||
|
||||
func (s *storer) Save(val any) error {
|
||||
return SetJson(s.key, val)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue