Skip to content

Commit fedbafb

Browse files
committed
refactor: remove unecessary resourse error atom
1 parent 62a14d6 commit fedbafb

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

x/logic/prolog/error.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package prolog
22

33
import (
44
"github.com/ichiban/prolog/engine"
5-
6-
"cosmossdk.io/store/types"
75
)
86

97
var (
@@ -82,8 +80,6 @@ var (
8280
// The module resource is the representation of the module with which the interaction is made.
8381
// The module resource is denoted as a compound with the name of the module.
8482
AtomResourceModule = engine.NewAtom("resource_module")
85-
// AtomResourceGas is the atom denoting the "gas" resource.
86-
AtomResourceGas = engine.NewAtom("gas")
8783
)
8884

8985
// ResourceContext returns a term representing the context resource.
@@ -96,12 +92,6 @@ func ResourceModule(module string) engine.Term {
9692
return AtomResourceModule.Apply(engine.NewAtom(module))
9793
}
9894

99-
// ResourceGas returns a term representing the gas resource with the given descriptor, consumed and limit at the
100-
// given context.
101-
func ResourceGas(descriptor string, consumed types.Gas, limit types.Gas) engine.Term {
102-
return AtomResourceGas.Apply(engine.NewAtom(descriptor), engine.Integer(int64(consumed)), engine.Integer(int64(limit)))
103-
}
104-
10595
var (
10696
AtomOperationInput = engine.NewAtom("input")
10797
AtomOperationExecute = engine.NewAtom("execute")

0 commit comments

Comments
 (0)