Skip to content

Commit 3527d3e

Browse files
committed
chore: delete unused code
1 parent d30d6d1 commit 3527d3e

File tree

7 files changed

+8
-31
lines changed

7 files changed

+8
-31
lines changed

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ jobs:
6060
fi
6161
6262
- name: staticcheck .
63-
run: staticcheck -checks "inherit,-U1000" ./...
63+
run: staticcheck ./...
6464

6565
- name: staticcheck ./examples
6666
working-directory: ./examples
67-
run: staticcheck -checks "inherit,-U1000" ./...
67+
run: staticcheck ./...
6868

6969
- name: staticcheck ./benchmarks
7070
working-directory: ./benchmarks
71-
run: staticcheck -checks "inherit,-U1000" ./...
71+
run: staticcheck ./...

driver_with_mockserver_test.go

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

4767-
func nullDate(valid bool, v string) spanner.NullDate {
4768-
if !valid {
4769-
return spanner.NullDate{}
4770-
}
4771-
return spanner.NullDate{Valid: true, Date: date(v)}
4772-
}
4773-
47744767
func nullJson(valid bool, v string) spanner.NullJSON {
47754768
if !valid {
47764769
return spanner.NullJSON{}

integration_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,6 @@ func skipIfShort(t *testing.T) {
264264
}
265265
}
266266

267-
func skipIfEmulator(t *testing.T, msg string) {
268-
if runsOnEmulator() {
269-
t.Skip(msg)
270-
}
271-
}
272-
273267
func TestQueryContext(t *testing.T) {
274268
skipIfShort(t)
275269
t.Parallel()

merged_row_iterator.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,6 @@ func (m *mergedRowIterator) produceRowsFromPartition(ctx context.Context, index
168168
}
169169
}
170170

171-
func (m *mergedRowIterator) isStopped() bool {
172-
m.mu.Lock()
173-
defer m.mu.Unlock()
174-
return m.err != nil
175-
}
176-
177171
func (m *mergedRowIterator) hasErr() bool {
178172
m.mu.Lock()
179173
defer m.mu.Unlock()

statement_parser.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,7 @@ type clientSideStatement struct {
840840
ResultType string `json:"resultType"`
841841
Regex string `json:"regex"`
842842
regexp *regexp.Regexp
843-
MethodName string `json:"method"`
844-
method func(query string) error
843+
MethodName string `json:"method"`
845844
ExampleStatements []string `json:"exampleStatements"`
846845
ExamplePrerequisiteStatements []string `json:"examplePrerequisiteStatements"`
847846

stmt.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ var _ driver.StmtQueryContext = &stmt{}
2929
var _ driver.NamedValueChecker = &stmt{}
3030

3131
type stmt struct {
32-
conn *conn
33-
numArgs int
34-
query string
35-
statementType statementType
36-
execOptions ExecOptions
32+
conn *conn
33+
numArgs int
34+
query string
35+
execOptions ExecOptions
3736
}
3837

3938
func (s *stmt) Close() error {

testutil/mocked_inmem_server.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ const selectDialect = "select option_value from information_schema.database_opti
3939
// server and will return a one-col-two-rows result set containing the INT64
4040
// values 1 and 2.
4141
const SelectFooFromBar = "SELECT FOO FROM BAR"
42-
const selectFooFromBarRowCount int64 = 2
43-
const selectFooFromBarColCount int = 1
4442

4543
var selectFooFromBarResults = []int64{1, 2}
4644

0 commit comments

Comments
 (0)