Skip to content

Commit

Permalink
fix(pgs): remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
mac-chaffee committed Dec 30, 2024
1 parent f9ba3bf commit b9682df
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pgs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,6 @@ func isZeroTime(t time.Time) bool {
return t.IsZero() || t.Equal(unixEpochTime)
}

func setLastModified(w http.ResponseWriter, modtime time.Time) {
if !isZeroTime(modtime) {
w.Header().Set("Last-Modified", modtime.UTC().Format(http.TimeFormat))
}
}

func writeNotModified(w http.ResponseWriter) {
// RFC 7232 section 4.1:
// a sender SHOULD NOT generate representation metadata other than the
Expand Down

0 comments on commit b9682df

Please sign in to comment.