From 5569c0e94de24ce3a8f359ad69aeb6a749a0056e Mon Sep 17 00:00:00 2001 From: nate smith Date: Tue, 29 Mar 2022 10:29:05 -0500 Subject: [PATCH] oops --- pkg/cmd/status/status.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/cmd/status/status.go b/pkg/cmd/status/status.go index 70857966f..c04737960 100644 --- a/pkg/cmd/status/status.go +++ b/pkg/cmd/status/status.go @@ -6,7 +6,6 @@ import ( "fmt" "net/http" "net/url" - "regexp" "sort" "strings" "time" @@ -219,17 +218,6 @@ func (s *StatusGetter) ActualMention(n Notification) (string, error) { // These are split up by endpoint since it is along that boundary we parallelize // work -var linkRE = regexp.MustCompile(`<([^>]+)>;\s*rel="([^"]+)"`) - -func findNextPage(resp *http.Response) (string, bool) { - for _, m := range linkRE.FindAllStringSubmatch(resp.Header.Get("Link"), -1) { - if len(m) > 2 && m[2] == "next" { - return m[1], true - } - } - return "", false -} - // Populate .Mentions func (s *StatusGetter) LoadNotifications() error { perPage := 100