Skip to content

Commit

Permalink
remove unused tests from different realms
Browse files Browse the repository at this point in the history
  • Loading branch information
matijamarjanovic committed Dec 19, 2024
1 parent b8d2da9 commit 74b4972
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions examples/gno.land/r/matijamarjanovic/home/home.gno
Original file line number Diff line number Diff line change
Expand Up @@ -239,31 +239,3 @@ func UpdateMinimalLink(link string) {
AssertAuthorized()
minimalLink = link
}

// IntRecord wraps an int to implement btree.Record interface
type IntRecord struct {
value int
}

// Less implements btree.Record interface
func (i *IntRecord) Less(than btree.Record) bool {
return i.value < than.(*IntRecord).value
}

// CreateAndRegisterBTree creates a btree with 3 integers and registers it with the DAO
func CreateAndRegisterBTree() error {
// Create new btree
tree := btree.New()

// Add 3 integers
tree.Insert(&IntRecord{1})
tree.Insert(&IntRecord{2})
tree.Insert(&IntRecord{3})

// Register tree with each address
err := btree_dao.Register(tree)
if err != nil {
return err
}
return nil
}

0 comments on commit 74b4972

Please sign in to comment.