Skip to content

Commit

Permalink
all: delete obsolete // +build lines
Browse files Browse the repository at this point in the history
Many of the modules in x/exp say go 1.18 or newer in their go.mod files.
Use go fix remove the // +build lines that have become obsolete by that
Go version. See https://go.dev/doc/go1.18#go-build-lines.

Change-Id: I9ec877d72ece76ce8ec2d4a368450db6ebda6d12
Reviewed-on: https://go-review.googlesource.com/c/exp/+/516676
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
  • Loading branch information
dmitshur authored and gopherbot committed Aug 7, 2023
1 parent d63ba01 commit 38c65eb
Show file tree
Hide file tree
Showing 66 changed files with 0 additions and 76 deletions.
1 change: 0 additions & 1 deletion cmd/macos-roots-test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build darwin
// +build darwin

// Command macOS-roots-test runs crypto/x509.TestSystemRoots as a
// stand-alone binary for crowdsourced testing.
Expand Down
1 change: 0 additions & 1 deletion cmd/macos-roots-test/root_nocgo_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !cgo
// +build !cgo

package main

Expand Down
1 change: 0 additions & 1 deletion event/adapter/gokit/gokit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !disable_events
// +build !disable_events

package gokit_test

Expand Down
1 change: 0 additions & 1 deletion event/adapter/logr/logr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !disable_events
// +build !disable_events

package logr_test

Expand Down
1 change: 0 additions & 1 deletion event/adapter/logrus/logrus.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !disable_events
// +build !disable_events

// Package logrus provides a logrus Formatter for events.
// To use for the global logger:
Expand Down
1 change: 0 additions & 1 deletion event/adapter/logrus/logrus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !disable_events
// +build !disable_events

package logrus_test

Expand Down
1 change: 0 additions & 1 deletion event/adapter/zap/zap.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !disable_events
// +build !disable_events

// zap provides an implementation of zapcore.Core for events.
// To use globally:
Expand Down
1 change: 0 additions & 1 deletion event/adapter/zap/zap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !disable_events
// +build !disable_events

package zap_test

Expand Down
1 change: 0 additions & 1 deletion event/alloc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !race
// +build !race

package event_test

Expand Down
1 change: 0 additions & 1 deletion event/disabled.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build disable_events
// +build disable_events

package event

Expand Down
1 change: 0 additions & 1 deletion event/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !disable_events
// +build !disable_events

package event_test

Expand Down
1 change: 0 additions & 1 deletion event/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !disable_events
// +build !disable_events

package event

Expand Down
1 change: 0 additions & 1 deletion event/otel/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !disable_events
// +build !disable_events

package otel_test

Expand Down
1 change: 0 additions & 1 deletion event/severity/severity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !disable_events
// +build !disable_events

package severity_test

Expand Down
1 change: 0 additions & 1 deletion event/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !disable_events
// +build !disable_events

package event

Expand Down
1 change: 0 additions & 1 deletion io/i2c/devfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build linux
// +build linux

package i2c

Expand Down
1 change: 0 additions & 1 deletion io/i2c/devfs_nonlinux.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !linux
// +build !linux

package i2c

Expand Down
1 change: 0 additions & 1 deletion io/spi/devfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build linux
// +build linux

package spi

Expand Down
1 change: 0 additions & 1 deletion io/spi/devfs_nonlinux.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !linux
// +build !linux

package spi

Expand Down
1 change: 0 additions & 1 deletion mmap/manual_test_program.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build ignore
// +build ignore

//
// This build tag means that "go build" does not build this file. Use "go run
Expand Down
1 change: 0 additions & 1 deletion mmap/mmap_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !linux && !windows && !darwin
// +build !linux,!windows,!darwin

// Package mmap provides a way to memory-map a file.
package mmap
Expand Down
1 change: 0 additions & 1 deletion mmap/mmap_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build linux || darwin
// +build linux darwin

// Package mmap provides a way to memory-map a file.
package mmap
Expand Down
1 change: 0 additions & 1 deletion shiny/driver/driver_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build darwin && !metal
// +build darwin,!metal

package driver

Expand Down
5 changes: 0 additions & 5 deletions shiny/driver/driver_fallback.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !darwin && (!linux || android) && !windows && !dragonfly && !openbsd
// +build !darwin
// +build !linux android
// +build !windows
// +build !dragonfly
// +build !openbsd

package driver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/driver_x11.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build (linux && !android) || dragonfly || openbsd
// +build linux,!android dragonfly openbsd

package driver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/gldriver/cocoa.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build darwin && !ios
// +build darwin,!ios

package gldriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/gldriver/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !android
// +build !android

package gldriver

Expand Down
4 changes: 0 additions & 4 deletions shiny/driver/gldriver/other.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
// license that can be found in the LICENSE file.

//go:build (!darwin || ios || !cgo) && (!linux || android || !cgo) && (!openbsd || !cgo) && !windows
// +build !darwin ios !cgo
// +build !linux android !cgo
// +build !openbsd !cgo
// +build !windows

package gldriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/gldriver/win32.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package gldriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/gldriver/x11.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build (linux && !android) || openbsd
// +build linux,!android openbsd

package gldriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/internal/swizzle/swizzle_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !amd64
// +build !amd64

package swizzle

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/internal/win32/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package win32

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/internal/win32/win32.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

// Package win32 implements a partial shiny screen driver using the Win32 API.
// It provides window, lifecycle, key, and mouse management, but no drawing.
Expand Down
1 change: 0 additions & 1 deletion shiny/driver/internal/x11key/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build ignore
// +build ignore

// This program generates the table keysymCodePoints from /usr/include/X11/keysymdef.h
package main
Expand Down
1 change: 0 additions & 1 deletion shiny/driver/mtldriver/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build darwin
// +build darwin

package mtldriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/mtldriver/internal/appkit/appkit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build darwin
// +build darwin

// Package appkit provides access to Apple's AppKit API
// (https://developer.apple.com/documentation/appkit).
Expand Down
1 change: 0 additions & 1 deletion shiny/driver/mtldriver/internal/coreanim/coreanim.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build darwin
// +build darwin

// Package coreanim provides access to Apple's Core Animation API
// (https://developer.apple.com/documentation/quartzcore).
Expand Down
1 change: 0 additions & 1 deletion shiny/driver/mtldriver/mtldriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build darwin
// +build darwin

// Package mtldriver provides a Metal driver for accessing a screen.
//
Expand Down
1 change: 0 additions & 1 deletion shiny/driver/mtldriver/screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build darwin
// +build darwin

package mtldriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/mtldriver/texture.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build darwin
// +build darwin

package mtldriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/mtldriver/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build darwin
// +build darwin

package mtldriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/mtldriver_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build darwin && metal
// +build darwin,metal

package driver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/windriver/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package windriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/windriver/other.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !windows
// +build !windows

package windriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/windriver/screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package windriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/windriver/texture.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package windriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/windriver/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package windriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/windriver/windraw.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package windriver

Expand Down
1 change: 0 additions & 1 deletion shiny/driver/windriver/windriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package windriver

Expand Down
Loading

0 comments on commit 38c65eb

Please sign in to comment.