summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-07-15 11:20:39 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-07-15 11:20:39 -0400
commit942ae4c5278e0a3064ef08937063ec66a6a8e990 (patch)
tree595514b6619988c72250ac2bf924cc103887f948 /model
parentb339b5c982a336abcc0a1f1bc9ba68e447472228 (diff)
downloadchat-942ae4c5278e0a3064ef08937063ec66a6a8e990.tar.gz
chat-942ae4c5278e0a3064ef08937063ec66a6a8e990.tar.bz2
chat-942ae4c5278e0a3064ef08937063ec66a6a8e990.zip
Cleaning up old export code (#3601)
Diffstat (limited to 'model')
-rw-r--r--model/channel.go3
-rw-r--r--model/post.go3
-rw-r--r--model/team.go3
-rw-r--r--model/user.go11
4 files changed, 0 insertions, 20 deletions
diff --git a/model/channel.go b/model/channel.go
index e7002e3cb..3da9f4feb 100644
--- a/model/channel.go
+++ b/model/channel.go
@@ -124,9 +124,6 @@ func (o *Channel) ExtraUpdated() {
o.ExtraUpdateAt = GetMillis()
}
-func (o *Channel) PreExport() {
-}
-
func GetDMNameFromIds(userId1, userId2 string) string {
if userId1 > userId2 {
return userId2 + "__" + userId1
diff --git a/model/post.go b/model/post.go
index 173c99e37..175aecdd7 100644
--- a/model/post.go
+++ b/model/post.go
@@ -162,9 +162,6 @@ func (o *Post) AddProp(key string, value interface{}) {
o.Props[key] = value
}
-func (o *Post) PreExport() {
-}
-
func (o *Post) IsSystemMessage() bool {
return len(o.Type) >= len(POST_SYSTEM_MESSAGE_PREFIX) && o.Type[:len(POST_SYSTEM_MESSAGE_PREFIX)] == POST_SYSTEM_MESSAGE_PREFIX
}
diff --git a/model/team.go b/model/team.go
index 072e0a8c0..dccc0219e 100644
--- a/model/team.go
+++ b/model/team.go
@@ -224,9 +224,6 @@ func CleanTeamName(s string) string {
return s
}
-func (o *Team) PreExport() {
-}
-
func (o *Team) Sanitize() {
o.Email = ""
o.AllowedDomains = ""
diff --git a/model/user.go b/model/user.go
index 4444352d3..bf6866b27 100644
--- a/model/user.go
+++ b/model/user.go
@@ -371,17 +371,6 @@ func (u *User) IsLDAPUser() bool {
return false
}
-func (u *User) PreExport() {
- u.Password = ""
- u.AuthData = new(string)
- *u.AuthData = ""
- u.LastActivityAt = 0
- u.LastPingAt = 0
- u.LastPasswordUpdate = 0
- u.LastPictureUpdate = 0
- u.FailedAttempts = 0
-}
-
// UserFromJson will decode the input and return a User
func UserFromJson(data io.Reader) *User {
decoder := json.NewDecoder(data)