Skip to content

Commit a009d8c

Browse files
committed
language: remove compatibility with go < 1.2
This was added in 9f86e0b to provide compatibility with go1.1, which is an obsolete version. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 252bee0 commit a009d8c

File tree

3 files changed

+2
-52
lines changed

3 files changed

+2
-52
lines changed

language/go1_1.go

Lines changed: 0 additions & 39 deletions
This file was deleted.

language/go1_2.go

Lines changed: 0 additions & 12 deletions
This file was deleted.

language/parse.go

Lines changed: 2 additions & 1 deletion
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)