From d6b5b681ae30d8d4a873e84728009218ddc59a20 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Mon, 25 Sep 2017 13:25:43 +0100 Subject: Finally do away with NewLocAppError function. (#7498) This cleans up the few NewLocAppError calls that crept in since the main bulk of them were removed, and finally removes the NewLocAppError function altogether. --- model/utils.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'model/utils.go') diff --git a/model/utils.go b/model/utils.go index eacfa5b2a..01b24157a 100644 --- a/model/utils.go +++ b/model/utils.go @@ -108,18 +108,6 @@ func NewAppError(where string, id string, params map[string]interface{}, details return ap } -func NewLocAppError(where string, id string, params map[string]interface{}, details string) *AppError { - ap := &AppError{} - ap.Id = id - ap.params = params - ap.Message = id - ap.Where = where - ap.DetailedError = details - ap.StatusCode = 500 - ap.IsOAuth = false - return ap -} - var encoding = base32.NewEncoding("ybndrfg8ejkmcpqxot1uwisza345h769") // NewId is a globally unique identifier. It is a [A-Z0-9] string 26 -- cgit v1.2.3-1-g7c22