Skip to content

Commit

Permalink
fn timePtrAfter is obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
gogolok authored and danail-branekov committed Oct 29, 2024
1 parent c646eba commit 234ca26
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions api/handlers/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"net/http"
"net/url"
"strconv"
"time"

"code.cloudfoundry.org/korifi/api/authorization"
apierrors "code.cloudfoundry.org/korifi/api/errors"
Expand Down Expand Up @@ -173,14 +172,6 @@ func (h *App) list(r *http.Request) (*routing.Response, error) { //nolint:dupl
return routing.NewResponse(http.StatusOK).WithBody(presenter.ForList(presenter.ForApp, appList, h.serverURL, *r.URL)), nil
}

func timePtrAfter(t1, t2 *time.Time) bool {
if t1 == nil || t2 == nil {
return false
}

return (*t1).After(*t2)
}

func (h *App) setCurrentDroplet(r *http.Request) (*routing.Response, error) {
authInfo, _ := authorization.InfoFromContext(r.Context())
logger := logr.FromContextOrDiscard(r.Context()).WithName("handlers.app.set-current-droplet")
Expand Down

0 comments on commit 234ca26

Please sign in to comment.