Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmaxwell committed Dec 23, 2024
1 parent af3da20 commit 6ae911e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions gnovm/pkg/gnolang/realm.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ func (rlm *Realm) DidUpdate(po, xo, co Object) {
} else if co.GetIsReal() {
rlm.MarkDirty(co)
} else {
//fmt.Println("---set owner for co: ", co)
//fmt.Println("---to be: ", po)
co.SetOwner(po)
rlm.MarkNewReal(co)
}
Expand Down Expand Up @@ -665,7 +663,6 @@ func (rlm *Realm) markDirtyAncestors(store Store) {
// Saves .created and .updated objects.
func (rlm *Realm) saveUnsavedObjects(store Store) {
for _, co := range rlm.created {
//fmt.Println("---co: ", co)
// for i := len(rlm.created) - 1; i >= 0; i-- {
// co := rlm.created[i]
if !co.GetIsNewReal() {
Expand All @@ -677,7 +674,6 @@ func (rlm *Realm) saveUnsavedObjects(store Store) {
}
}
for _, uo := range rlm.updated {
//fmt.Println("---uo: ", uo)
// for i := len(rlm.updated) - 1; i >= 0; i-- {
// uo := rlm.updated[i]
if !uo.GetIsDirty() {
Expand Down
2 changes: 1 addition & 1 deletion gnovm/pkg/gnolang/values.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (pv PointerValue) Assign2(alloc *Allocator, store Store, rlm *Realm, tv2 Ty
panic("should not happen")
}
if nv, ok := tv2.V.(*NativeValue); !ok ||
nv.Value.Kind() != reflect.Func {
nv.Value.Kind() != reflect.Func {
panic("should not happen")
}
}
Expand Down

0 comments on commit 6ae911e

Please sign in to comment.