Skip to content

Commit

Permalink
Remove Unused Function
Browse files Browse the repository at this point in the history
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
  • Loading branch information
rodneyosodo committed Jul 28, 2023
1 parent b0b6985 commit d53bcb6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions internal/server/coap/coap.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"crypto/tls"
"fmt"
"os"
"time"

"github.com/mainflux/mainflux/internal/server"
Expand Down Expand Up @@ -83,10 +82,3 @@ func (s *Server) Stop() error {
s.Logger.Info(fmt.Sprintf("%s service shutdown of http at %s", s.Name, s.Address))
return nil
}

func loadCertFile(certFile string) ([]byte, error) {
if certFile != "" {
return os.ReadFile(certFile)
}
return []byte{}, nil
}

0 comments on commit d53bcb6

Please sign in to comment.