Skip to content

Commit 1bdb400

Browse files
thaJeztahgopherbot
authored andcommitted
language: remove compatibility with go < 1.2
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]>
1 parent 252bee0 commit 1bdb400

File tree

3 files changed

+2
-52
lines changed

3 files changed

+2
-52
lines changed

language/go1_1.go

-39
This file was deleted.

language/go1_2.go

-12
This file was deleted.

language/parse.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package language
66

77
import (
88
"errors"
9+
"sort"
910
"strconv"
1011
"strings"
1112

@@ -206,7 +207,7 @@ func ParseAcceptLanguage(s string) (tag []Tag, q []float32, err error) {
206207
tag = append(tag, t)
207208
q = append(q, float32(w))
208209
}
209-
sortStable(&tagSort{tag, q})
210+
sort.Stable(&tagSort{tag, q})
210211
return tag, q, nil
211212
}
212213

0 commit comments

Comments
 (0)