diff --git a/myerr/code.go b/myerr/code.go index 49713da66592147b52e8667649b7be26c12e13fb..dd6570768be8cd8b63c2bcd4f428ef05bc6d950e 100755 --- a/myerr/code.go +++ b/myerr/code.go @@ -2,7 +2,6 @@ package myerr import ( "fmt" - "git.hilo.cn/hilo-common/myerr" "git.hilo.cn/hilo-common/mylogrus" "github.com/pkg/errors" "strconv" @@ -226,7 +225,3 @@ func WrapErr(err error) error { return errors.Wrap(err, "") } } - -func ToLocal(err *myerr.BusinessError) error { - return NewBusinessCode(err.GetCode(), err.GetMsg(), BusinessData{}) -}