Skip to content

Commit

Permalink
删除无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Summer committed Jul 2, 2021
1 parent 7c71a7b commit df3e2d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
13 changes: 1 addition & 12 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,14 @@ import (
"time"
)

type ArgParser func(s *Session)

func (a ArgParser) Parse(s *Session) {
a(s)
}

type Session struct {
Manager *SessionManager
Sender Sender
StartTime time.Time
Message Message
Env map[string]interface{}
Env map[string]interface{}
IsFirstRun bool
Action string
ArgParser ArgParser
Agent *Agent
}

Expand All @@ -42,10 +35,6 @@ func (s Session) Get(arg string, prompt string) interface{} {
return s.Env[arg]
}

func (s *Session) RegisterArgParser(parser ArgParser) {
s.ArgParser = parser
}

type SessionManager struct {
Pool map[int64]*Session
}
Expand Down
1 change: 0 additions & 1 deletion whitedew.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ func (h HandlerFunc) Handle(s *Session) {
h(s)
}


type Server struct {
engine *gin.Engine
}
Expand Down

0 comments on commit df3e2d8

Please sign in to comment.