From e32c609bf2cc8c1e0420c78bdc0206777a1d1430 Mon Sep 17 00:00:00 2001 From: Parminder Singh Date: Sun, 4 Aug 2019 03:37:04 +0530 Subject: [PATCH] Removed add completed stage function from session --- clientapi/routing/register.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/clientapi/routing/register.go b/clientapi/routing/register.go index 0df623c74..2578180db 100644 --- a/clientapi/routing/register.go +++ b/clientapi/routing/register.go @@ -83,17 +83,6 @@ func (d sessionsDict) GetCompletedStages(sessionID string) []authtypes.LoginType return make([]authtypes.LoginType, 0) } -// AddCompletedStage records that a session has completed an auth stage. -func (d *sessionsDict) AddCompletedStage(sessionID string, stage authtypes.LoginType) { - // Return if the stage is already present - for _, completedStage := range d.GetCompletedStages(sessionID) { - if completedStage == stage { - return - } - } - d.sessions[sessionID] = append(d.GetCompletedStages(sessionID), stage) -} - func newSessionsDict() *sessionsDict { return &sessionsDict{ sessions: make(map[string][]authtypes.LoginType),