diff --git a/annotation/map.go b/annotation/map.go index 5f1f08d1..0298796b 100644 --- a/annotation/map.go +++ b/annotation/map.go @@ -365,14 +365,6 @@ func TypeIsDefaultNilable(t types.Type) bool { return true } - // Additionally, we allow custom default nilable types provided by the users. - if t, ok := t.(*types.Named); ok { - for _, defaultNilableNamedType := range config.DefaultNilableNamedTypes { - if t.String() == defaultNilableNamedType { - return true - } - } - } return false } diff --git a/config/const.go b/config/const.go index 841beaba..bd7fd5d8 100644 --- a/config/const.go +++ b/config/const.go @@ -38,6 +38,3 @@ const NilAwayPkgPathPrefix = uberPkgPathPrefix + "/nilaway" // to the locations that triggered errors - right now it seems as if 1 is sufficient disambiguation, // but feel free to increase. const DirLevelsToPrintForTriggers = 1 - -// DefaultNilableNamedTypes is the list of type names that we interpret as default nilable. -var DefaultNilableNamedTypes = [...]string{}