Skip to content

Commit e39753f

Browse files
remove unused function
1 parent 15f580d commit e39753f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

controllers/cloud.redhat.com/errors/errors.go

-12
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,6 @@ func (e *MissingDependencies) Error() string {
100100
return fmt.Sprintf("Missing dependencies: [%s]", body)
101101
}
102102

103-
// RootCause takes an error an unwraps it, if it is nil, it calls RootCause on the returned err,
104-
// this will recursively find an error that has an unwrapped value.
105-
func RootCause(err error) error {
106-
cause := errlib.Unwrap(err)
107-
108-
if cause != nil {
109-
return RootCause(cause)
110-
}
111-
112-
return err
113-
}
114-
115103
// GetRootStack will recurse through an error until it finds one with a stack string set.
116104
func GetRootStack(err error) string {
117105
var stack string

0 commit comments

Comments
 (0)