Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
16c9d361
Commit
16c9d361
authored
Aug 03, 2013
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
various: deleted unused items
R=golang-dev, dsymonds CC=golang-dev
https://golang.org/cl/12396043
parent
8a7def2b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
66 deletions
+0
-66
decode_test.go
src/pkg/encoding/json/decode_test.go
+0
-3
escape.go
src/pkg/html/escape.go
+0
-10
grammar.go
src/pkg/mime/grammar.go
+0
-13
parse.go
src/pkg/text/template/parse/parse.go
+0
-22
time.go
src/pkg/time/time.go
+0
-1
zoneinfo.go
src/pkg/time/zoneinfo.go
+0
-13
zoneinfo_read.go
src/pkg/time/zoneinfo_read.go
+0
-4
No files found.
src/pkg/encoding/json/decode_test.go
View file @
16c9d361
...
...
@@ -50,8 +50,6 @@ type tx struct {
x
int
}
var
txType
=
reflect
.
TypeOf
((
*
tx
)(
nil
))
.
Elem
()
// A type that can unmarshal itself.
type
unmarshaler
struct
{
...
...
@@ -1070,7 +1068,6 @@ func TestUnmarshalNulls(t *testing.T) {
func
TestStringKind
(
t
*
testing
.
T
)
{
type
stringKind
string
type
aMap
map
[
stringKind
]
int
var
m1
,
m2
map
[
stringKind
]
int
m1
=
map
[
stringKind
]
int
{
...
...
src/pkg/html/escape.go
View file @
16c9d361
...
...
@@ -187,16 +187,6 @@ func unescape(b []byte) []byte {
return
b
}
// lower lower-cases the A-Z bytes in b in-place, so that "aBc" becomes "abc".
func
lower
(
b
[]
byte
)
[]
byte
{
for
i
,
c
:=
range
b
{
if
'A'
<=
c
&&
c
<=
'Z'
{
b
[
i
]
=
c
+
'a'
-
'A'
}
}
return
b
}
const
escapedChars
=
`&'<>"`
func
escape
(
w
writer
,
s
string
)
error
{
...
...
src/pkg/mime/grammar.go
View file @
16c9d361
...
...
@@ -30,16 +30,3 @@ func isToken(s string) bool {
}
return
strings
.
IndexFunc
(
s
,
isNotTokenChar
)
<
0
}
// isQText returns true if rune is in 'qtext' as defined by RFC 822.
func
isQText
(
r
int
)
bool
{
// CHAR = <any ASCII character> ; ( 0-177, 0.-127.)
// qtext = <any CHAR excepting <">, ; => may be folded
// "\" & CR, and including
// linear-white-space>
switch
r
{
case
'"'
,
'\\'
,
'\r'
:
return
false
}
return
r
<
0x80
}
src/pkg/text/template/parse/parse.go
View file @
16c9d361
...
...
@@ -14,7 +14,6 @@ import (
"runtime"
"strconv"
"strings"
"unicode"
)
// Tree is the representation of a single parsed template.
...
...
@@ -200,27 +199,6 @@ func (t *Tree) stopParse() {
t
.
funcs
=
nil
}
// atEOF returns true if, possibly after spaces, we're at EOF.
func
(
t
*
Tree
)
atEOF
()
bool
{
for
{
token
:=
t
.
peek
()
switch
token
.
typ
{
case
itemEOF
:
return
true
case
itemText
:
for
_
,
r
:=
range
token
.
val
{
if
!
unicode
.
IsSpace
(
r
)
{
return
false
}
}
t
.
next
()
// skip spaces.
continue
}
break
}
return
false
}
// Parse parses the template definition string to construct a representation of
// the template for execution. If either action delimiter string is empty, the
// default ("{{" or "}}") is used. Embedded template definitions are added to
...
...
src/pkg/time/time.go
View file @
16c9d361
...
...
@@ -669,7 +669,6 @@ const (
daysPer400Years
=
365
*
400
+
97
daysPer100Years
=
365
*
100
+
24
daysPer4Years
=
365
*
4
+
1
days1970To2001
=
31
*
365
+
8
)
// date computes the year, day of year, and when full=true,
...
...
src/pkg/time/zoneinfo.go
View file @
16c9d361
...
...
@@ -178,19 +178,6 @@ func (l *Location) lookupName(name string, unix int64) (offset int, isDST bool,
return
}
// lookupOffset returns information about the time zone with
// the given offset (such as -5*60*60).
func
(
l
*
Location
)
lookupOffset
(
offset
int
)
(
name
string
,
isDST
bool
,
ok
bool
)
{
l
=
l
.
get
()
for
i
:=
range
l
.
zone
{
zone
:=
&
l
.
zone
[
i
]
if
zone
.
offset
==
offset
{
return
zone
.
name
,
zone
.
isDST
,
true
}
}
return
}
// NOTE(rsc): Eventually we will need to accept the POSIX TZ environment
// syntax too, but I don't feel like implementing it today.
...
...
src/pkg/time/zoneinfo_read.go
View file @
16c9d361
...
...
@@ -11,10 +11,6 @@ package time
import
"errors"
const
(
headerSize
=
4
+
16
+
4
*
7
)
// Simple I/O interface to binary blob of data.
type
data
struct
{
p
[]
byte
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment