From 105703e2eb0182c5a21850df440ae86eff8e0d36 Mon Sep 17 00:00:00 2001 From: Icaro Motta Date: Fri, 26 Jan 2024 12:28:23 -0300 Subject: [PATCH] Remove zombie code from experiments --- protocol/communities/manager.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/protocol/communities/manager.go b/protocol/communities/manager.go index 0d2915bf3..f06ece424 100644 --- a/protocol/communities/manager.go +++ b/protocol/communities/manager.go @@ -2185,18 +2185,6 @@ func (m *Manager) CheckPermissionToJoin(id []byte, addresses []gethcommon.Addres } -func (m *Manager) GetTokenPermissions(communityID types.HexBytes) (map[string]*CommunityTokenPermission, error) { - community, err := m.GetByID(communityID) - if err != nil { - return nil, err - } - if community == nil { - return nil, errors.Errorf("community does not exist ID='%s'", communityID) - } - - return community.TokenPermissions(), nil -} - type PermissionedBalance struct { Type protobuf.CommunityTokenType `json:"type"` Symbol string `json:"symbol"`