Skip to content

Commit 90cb985

Browse files
committed
chore: delete unused code
1 parent 0ed841e commit 90cb985

File tree

5 files changed

+4
-20
lines changed

5 files changed

+4
-20
lines changed

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ jobs:
5757
fi
5858
5959
- name: staticcheck .
60-
run: staticcheck -checks "inherit,-U1000" ./...
60+
run: staticcheck ./...
6161

6262
- name: staticcheck ./examples
6363
working-directory: ./examples
64-
run: staticcheck -checks "inherit,-U1000" ./...
64+
run: staticcheck ./...
6565

6666
- name: staticcheck ./benchmarks
6767
working-directory: ./benchmarks
68-
run: staticcheck -checks "inherit,-U1000" ./...
68+
run: staticcheck ./...

driver_with_mockserver_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3011,13 +3011,6 @@ func date(v string) civil.Date {
30113011
return res
30123012
}
30133013

3014-
func nullDate(valid bool, v string) spanner.NullDate {
3015-
if !valid {
3016-
return spanner.NullDate{}
3017-
}
3018-
return spanner.NullDate{Valid: true, Date: date(v)}
3019-
}
3020-
30213014
func nullJson(valid bool, v string) spanner.NullJSON {
30223015
if !valid {
30233016
return spanner.NullJSON{}

integration_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,6 @@ func skipIfShort(t *testing.T) {
245245
}
246246
}
247247

248-
func skipIfEmulator(t *testing.T, msg string) {
249-
if runsOnEmulator() {
250-
t.Skip(msg)
251-
}
252-
}
253-
254248
func TestQueryContext(t *testing.T) {
255249
skipIfShort(t)
256250
t.Parallel()

statement_parser.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,7 @@ type clientSideStatement struct {
336336
ResultType string `json:"resultType"`
337337
Regex string `json:"regex"`
338338
regexp *regexp.Regexp
339-
MethodName string `json:"method"`
340-
method func(query string) error
339+
MethodName string `json:"method"`
341340
ExampleStatements []string `json:"exampleStatements"`
342341
ExamplePrerequisiteStatements []string `json:"examplePrerequisiteStatements"`
343342

testutil/mocked_inmem_server.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ import (
3434
// server and will return a one-col-two-rows result set containing the INT64
3535
// values 1 and 2.
3636
const SelectFooFromBar = "SELECT FOO FROM BAR"
37-
const selectFooFromBarRowCount int64 = 2
38-
const selectFooFromBarColCount int = 1
3937

4038
var selectFooFromBarResults = []int64{1, 2}
4139

0 commit comments

Comments
 (0)