diff --git a/weed/server/filer_server.go b/weed/server/filer_server.go index 10ba22b02..40be2d7cf 100644 --- a/weed/server/filer_server.go +++ b/weed/server/filer_server.go @@ -85,10 +85,6 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption) return fs, nil } -func (fs *FilerServer) jwt(fileId string) security.EncodedJwt { - return security.GenJwt(fs.secret, fileId) -} - func LoadConfiguration(configFileName string, required bool) (loaded bool) { // find a filer store diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go index be1b433f7..a4905c5c5 100644 --- a/weed/server/volume_server.go +++ b/weed/server/volume_server.go @@ -83,7 +83,3 @@ func (vs *VolumeServer) Shutdown() { vs.store.Close() glog.V(0).Infoln("Shut down successfully!") } - -func (vs *VolumeServer) jwt(fileId string) security.EncodedJwt { - return security.GenJwt(vs.guard.SigningKey, fileId) -}