summaryrefslogtreecommitdiffstats
path: root/model/client.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-01-03 17:12:55 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2017-01-03 17:12:55 -0500
commita71fc7ff7f9c5a04771b003c1cd195c5bc75336c (patch)
tree720cb3d538a0069f22f3ec9cd8ab0e61fe71bc3a /model/client.go
parent3df8f334379f1977b3122fb78d0c742309e91a3b (diff)
downloadchat-a71fc7ff7f9c5a04771b003c1cd195c5bc75336c.tar.gz
chat-a71fc7ff7f9c5a04771b003c1cd195c5bc75336c.tar.bz2
chat-a71fc7ff7f9c5a04771b003c1cd195c5bc75336c.zip
Removing old createTeamFromSignup api (#4945)
Diffstat (limited to 'model/client.go')
-rw-r--r--model/client.go15
1 files changed, 2 insertions, 13 deletions
diff --git a/model/client.go b/model/client.go
index 7248ca951..0c8bdcc5b 100644
--- a/model/client.go
+++ b/model/client.go
@@ -6,7 +6,6 @@ package model
import (
"bytes"
"fmt"
- l4g "github.com/alecthomas/log4go"
"io"
"io/ioutil"
"mime/multipart"
@@ -15,6 +14,8 @@ import (
"strconv"
"strings"
"time"
+
+ l4g "github.com/alecthomas/log4go"
)
const (
@@ -314,18 +315,6 @@ func (c *Client) SignupTeam(email string, displayName string) (*Result, *AppErro
}
}
-// CreateTeamFromSignup creates a team based on the provided TeamSignup struct. On success
-// it returns the TeamSignup struct.
-func (c *Client) CreateTeamFromSignup(teamSignup *TeamSignup) (*Result, *AppError) {
- if r, err := c.DoApiPost("/teams/create_from_signup", teamSignup.ToJson()); err != nil {
- return nil, err
- } else {
- defer closeBody(r)
- return &Result{r.Header.Get(HEADER_REQUEST_ID),
- r.Header.Get(HEADER_ETAG_SERVER), TeamSignupFromJson(r.Body)}, nil
- }
-}
-
// CreateTeam creates a team based on the provided Team struct. On success it returns
// the Team struct with the Id, CreateAt and other server-decided fields populated.
func (c *Client) CreateTeam(team *Team) (*Result, *AppError) {