Skip to content

Commit 6ae4cbb

Browse files
authored
Merge pull request #1035 from alexandear/chore/remove-outdated-build-constraint
Remove the outdated build constraint `// +build`
2 parents 25d56e0 + 15c2edd commit 6ae4cbb

File tree

128 files changed

+2
-128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+2
-128
lines changed

attachments123_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build go1.23
14-
// +build go1.23
1514

1615
package kivik
1716

changes123_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build go1.23
14-
// +build go1.23
1514

1615
package kivik
1716

couchdb/chttp/chttp_js_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package chttp
1716

couchdb/main_js_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package couchdb
1716

couchdb/session_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build !js
14-
// +build !js
1514

1615
// GopherJS can't run a test server
1716

couchdb/test/couchdb_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build !js
14-
// +build !js
1514

1615
package test
1716

internal/nettest/nettest.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build !js
14-
// +build !js
1514

1615
// Package nettest wraps [httptest.NewServer] to skip when called from GopherJS.
1716
package nettest

internal/nettest/nettest_js.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
// Package nettest wraps [httptest.NewServer] to skip when called from GopherJS.
1716
package nettest

kiviktest/client/replicate_js.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package client
1716

kiviktest/client/replicate_nonjs.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build !js
14-
// +build !js
1514

1615
package client
1716

kiviktest/go110testing.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build go1.10 && !go1.18
14-
// +build go1.10,!go1.18
1514

1615
package kiviktest
1716

kiviktest/go118testing.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build go1.18 && !go1.23
14-
// +build go1.18,!go1.23
1514

1615
package kiviktest
1716

kiviktest/go123testing.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build go1.23
14-
// +build go1.23
1514

1615
package kiviktest
1716

kiviktest/go18testing.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build go1.8 && !go1.9
14-
// +build go1.8,!go1.9
1514

1615
package kiviktest
1716

pouchdb/README.md

+1-1

pouchdb/attachments.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/basicauth.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/bindings/errors.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package bindings
1716

pouchdb/bindings/errors_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package bindings
1716

pouchdb/bindings/nofind_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package bindings
1716

pouchdb/bindings/pouchdb.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
// Package bindings provides minimal GopherJS bindings around the PouchDB
1716
// library. (https://pouchdb.com/api.html)

pouchdb/bindings/poucherr/poucherr.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
// Package poucherr exists only for the purpose of testing the PouchDB binding's
1716
// handling of PouchDB-specific error messages. This Go package is empty, the

pouchdb/bindings/recover.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package bindings
1716

pouchdb/bulk.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/changes.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/changes_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/db.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/db_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Use the `pouch` driver name when using this driver. The DSN should be the
2121
blank string for local database connections, or a full URL, including any
2222
required credentials, when connecting to a remote database.
2323
24-
// +build js
24+
//go:build js
2525
2626
package main
2727

pouchdb/find.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/find_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/indexeddb/purge_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package indexeddb
1716

pouchdb/internal/pouchver.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package internal
1716

pouchdb/js.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build !js
14-
// +build !js
1514

1615
package pouchdb
1716

pouchdb/pouchdb.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/replication.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/replicationEvents.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/rows.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package pouchdb
1716

pouchdb/test/pouchdb_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
package test
1716

pouchdb/test/test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build js
14-
// +build js
1514

1615
// Package test provides PouchDB integration tests.
1716
package test

replicate_live_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// TODO: Try to re-enable these tests when we're on a newer version of GopherJS.
1414

1515
//go:build !js
16-
// +build !js
1716

1817
package kivik_test
1918

resultset123_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build go1.23
14-
// +build go1.23
1514

1615
package kivik
1716

updates123_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build go1.23
14-
// +build go1.23
1514

1615
package kivik
1716

x/fsdb/test/fs_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build !js
14-
// +build !js
1514

1615
package test
1716

x/kivikd/auth.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build !js
14-
// +build !js
1514

1615
package kivikd
1716

x/kivikd/auth/cookie/cookie.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build !js
14-
// +build !js
1514

1615
// Package cookie provides standard CouchDB cookie auth as described at
1716
// http://docs.couchdb.org/en/2.0.0/api/server/authn.html#cookie-authentication

x/kivikd/auth/cookie/cookie_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build !js
14-
// +build !js
1514

1615
package cookie
1716

x/kivikd/authdb/authgroup/authgroup.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build !js
14-
// +build !js
1514

1615
package authgroup
1716

x/kivikd/authdb/authgroup/authgroup_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// the License.
1212

1313
//go:build !js
14-
// +build !js
1514

1615
package authgroup
1716

0 commit comments

Comments
 (0)