diff options
author | George Goldberg <george@gberg.me> | 2017-09-25 13:25:43 +0100 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-09-25 08:25:43 -0400 |
commit | d6b5b681ae30d8d4a873e84728009218ddc59a20 (patch) | |
tree | 879a45c1694c108d557ab12adcd6af1a068dedf2 /model/utils.go | |
parent | cff0c941f26ddec30dbbddf18df425b672d47bc7 (diff) | |
download | chat-d6b5b681ae30d8d4a873e84728009218ddc59a20.tar.gz chat-d6b5b681ae30d8d4a873e84728009218ddc59a20.tar.bz2 chat-d6b5b681ae30d8d4a873e84728009218ddc59a20.zip |
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.
Diffstat (limited to 'model/utils.go')
-rw-r--r-- | model/utils.go | 12 |
1 files changed, 0 insertions, 12 deletions
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 |