Skip to content

Commit

Permalink
Kill manualserial, not used
Browse files Browse the repository at this point in the history
  • Loading branch information
cjeker committed Dec 21, 2023
1 parent 2f252df commit 2f8e5b6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ type Server struct {
sdCurrent []SendableData
sdCurrentSerial uint32
keepDiff int
manualserial bool

pduRefreshInterval uint32
pduRetryInterval uint32
Expand Down Expand Up @@ -285,10 +284,6 @@ func ApplyDiff(diff, prevSDs []SendableData) []SendableData {
return newSDs
}

func (s *Server) SetManualSerial(v bool) {
s.manualserial = v
}

func (s *Server) GetSessionId() uint16 {
return s.sessId
}
Expand Down Expand Up @@ -340,7 +335,7 @@ func (s *Server) GenerateSerial() uint32 {

func (s *Server) generateSerial() uint32 {
newserial := s.sdCurrentSerial
if !s.manualserial && len(s.sdListSerial) > 0 {
if len(s.sdListSerial) > 0 {
newserial = s.sdListSerial[len(s.sdListSerial)-1] + 1
}
return newserial
Expand Down

0 comments on commit 2f8e5b6

Please sign in to comment.