X Tutup
Skip to content

Commit 5569c0e

Browse files
author
nate smith
committed
oops
1 parent 0e941dc commit 5569c0e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pkg/cmd/status/status.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"fmt"
77
"net/http"
88
"net/url"
9-
"regexp"
109
"sort"
1110
"strings"
1211
"time"
@@ -219,17 +218,6 @@ func (s *StatusGetter) ActualMention(n Notification) (string, error) {
219218
// These are split up by endpoint since it is along that boundary we parallelize
220219
// work
221220

222-
var linkRE = regexp.MustCompile(`<([^>]+)>;\s*rel="([^"]+)"`)
223-
224-
func findNextPage(resp *http.Response) (string, bool) {
225-
for _, m := range linkRE.FindAllStringSubmatch(resp.Header.Get("Link"), -1) {
226-
if len(m) > 2 && m[2] == "next" {
227-
return m[1], true
228-
}
229-
}
230-
return "", false
231-
}
232-
233221
// Populate .Mentions
234222
func (s *StatusGetter) LoadNotifications() error {
235223
perPage := 100

0 commit comments

Comments
 (0)
X Tutup