Skip to content

Commit

Permalink
language: remove compatibility with go < 1.2
Browse files Browse the repository at this point in the history
This was added in 9f86e0b to provide compatibility with go1.1, which is an obsolete version.

Change-Id: Ie3edbf9bd377608344e14ba327c437cbc4aa0c9a
GitHub-Last-Rev: a009d8c
GitHub-Pull-Request: #37
Reviewed-on: https://go-review.googlesource.com/c/text/+/442796
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Joedian Reid <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
  • Loading branch information
thaJeztah authored and gopherbot committed Oct 14, 2022
1 parent 252bee0 commit 1bdb400
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 52 deletions.
39 changes: 0 additions & 39 deletions language/go1_1.go

This file was deleted.

12 changes: 0 additions & 12 deletions language/go1_2.go

This file was deleted.

3 changes: 2 additions & 1 deletion language/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package language

import (
"errors"
"sort"
"strconv"
"strings"

Expand Down Expand Up @@ -206,7 +207,7 @@ func ParseAcceptLanguage(s string) (tag []Tag, q []float32, err error) {
tag = append(tag, t)
q = append(q, float32(w))
}
sortStable(&tagSort{tag, q})
sort.Stable(&tagSort{tag, q})
return tag, q, nil
}

Expand Down

0 comments on commit 1bdb400

Please sign in to comment.