From a71fc7ff7f9c5a04771b003c1cd195c5bc75336c Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 3 Jan 2017 17:12:55 -0500 Subject: Removing old createTeamFromSignup api (#4945) --- model/client.go | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'model/client.go') 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) { -- cgit v1.2.3-1-g7c22