Skip to content

Commit

Permalink
Remove temporary commented code and unused error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sagerb committed Jan 31, 2025
1 parent cc4a526 commit 145e230
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions internal/services/api/http_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package api
// Copyright (C) 2023 by Posit Software, PBC.

import (
"errors"
"fmt"
"net"
"net/http"
Expand All @@ -18,24 +17,14 @@ type Service struct {
handler http.HandlerFunc
listen string
path string
// keyFile string
// certFile string
// openBrowser bool
// openBrowserAt string
addr net.Addr
log logging.Logger
addr net.Addr
log logging.Logger
}

var errTlsRequiredFiles error = errors.New("TLS requires both a private key file and a certificate chain file")

func newHTTPService(
handler http.HandlerFunc,
listen string,
path string,
// keyFile string,
// certFile string,
// openBrowser bool,
// openBrowserAt string,
accessLog bool,
log logging.Logger) *Service {

Expand All @@ -48,12 +37,8 @@ func newHTTPService(
handler: handler,
listen: listen,
path: path,
// keyFile: keyFile,
// certFile: certFile,
// openBrowser: openBrowser,
// openBrowserAt: openBrowserAt,
addr: nil,
log: log,
addr: nil,
log: log,
}
}

Expand Down

0 comments on commit 145e230

Please sign in to comment.