We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e941dc commit 5569c0eCopy full SHA for 5569c0e
pkg/cmd/status/status.go
@@ -6,7 +6,6 @@ import (
6
"fmt"
7
"net/http"
8
"net/url"
9
- "regexp"
10
"sort"
11
"strings"
12
"time"
@@ -219,17 +218,6 @@ func (s *StatusGetter) ActualMention(n Notification) (string, error) {
219
218
// These are split up by endpoint since it is along that boundary we parallelize
220
// work
221
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
233
// Populate .Mentions
234
func (s *StatusGetter) LoadNotifications() error {
235
perPage := 100
0 commit comments