0bc81aecf4
Our current algorithm marks function as used if it is called at least ones, even if the callee function is itself unused. This commit implements more clever traversal to collect usage information more precisely. Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
15 lines
241 B
Go
15 lines
241 B
Go
package notify
|
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
|
|
|
// Value is the constant we use.
|
|
const Value = 42
|
|
|
|
// EmitEvent emits some event.
|
|
func EmitEvent() {
|
|
emitPrivate()
|
|
}
|
|
|
|
func emitPrivate() {
|
|
runtime.Notify("Event")
|
|
}
|