From 2503d6e132c9c01a4441aa4ac0c7317284e28fea Mon Sep 17 00:00:00 2001 From: Thomas Tendyck Date: Fri, 25 Mar 2022 12:49:39 +0100 Subject: [PATCH] remove unused helpers in storewrapper --- coordinator/storewrapper/storewrapper.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/coordinator/storewrapper/storewrapper.go b/coordinator/storewrapper/storewrapper.go index e706735fd..0726ed1b0 100644 --- a/coordinator/storewrapper/storewrapper.go +++ b/coordinator/storewrapper/storewrapper.go @@ -356,23 +356,3 @@ func (s StoreWrapper) PopNextFreeNodeIP() (string, error) { } return vpnIP, nil } - -// _put is the default method for marshaling and saving data to store. -func (s StoreWrapper) _put(requestType, requestResource string, target interface{}) error { - request := requestType + ":" + requestResource - rawData, err := json.Marshal(target) - if err != nil { - return err - } - return s.Store.Put(request, rawData) -} - -// _get is the default method for loading and unmarshaling data from store. -func (s StoreWrapper) _get(requestType, requestResource string, target interface{}) error { - request := requestType + ":" + requestResource - rawData, err := s.Store.Get(request) - if err != nil { - return err - } - return json.Unmarshal(rawData, target) -}