Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmaxwell committed Apr 6, 2023
1 parent 78a79cf commit c9c586d
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions pkgs/gnolang/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1400,29 +1400,6 @@ func baseOf(t Type) Type {
}
}

func isBaseOf(t1, t2 Type) bool {
println("check base of")
if t2 != nil {
println("t2: ", t2.String())
} else {
println("t2 is nil")
}
if t1 != nil {
println("t1: ", t1.String())
} else {
println("t1 is nil")
}
if dt, ok := t2.(*DeclaredType); ok {
if dt.Base != nil {
println("dt.Base: ", dt.Base.String())
} else {
println("dt base is nil")
}
return dt.Base.TypeID() == t1.TypeID()
}
return false
}

// NOTE: it may be faster to switch on baseOf().
func (dt *DeclaredType) Kind() Kind {
return dt.Base.Kind()
Expand Down

0 comments on commit c9c586d

Please sign in to comment.