summaryrefslogtreecommitdiff
path: root/libgo/go/internal/reflectlite/value.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/internal/reflectlite/value.go')
-rw-r--r--libgo/go/internal/reflectlite/value.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/libgo/go/internal/reflectlite/value.go b/libgo/go/internal/reflectlite/value.go
index bfc321f35cd..9a14d18ba2f 100644
--- a/libgo/go/internal/reflectlite/value.go
+++ b/libgo/go/internal/reflectlite/value.go
@@ -180,16 +180,6 @@ type emptyInterface struct {
word unsafe.Pointer
}
-// nonEmptyInterface is the header for an interface value with methods.
-type nonEmptyInterface struct {
- // see ../runtime/iface.go:/Itab
- itab *struct {
- typ *rtype // dynamic concrete type
- fun [100000]unsafe.Pointer // method table
- }
- word unsafe.Pointer
-}
-
// mustBeExported panics if f records that the value was obtained using
// an unexported field.
func (f flag) mustBeExported() {
@@ -316,7 +306,7 @@ func (v Value) IsNil() bool {
// IsValid reports whether v represents a value.
// It returns false if v is the zero Value.
// If IsValid returns false, all other methods except String panic.
-// Most functions and methods never return an invalid value.
+// Most functions and methods never return an invalid Value.
// If one does, its documentation states the conditions explicitly.
func (v Value) IsValid() bool {
return v.flag != 0