From b323466d0bc6669362b0836480b30452d2c00db9 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Tue, 5 Apr 2016 15:04:12 +1000 Subject: [PATCH] windows: remove unused asm.s Change-Id: I1a2b96f71c9f39a46827e9414e1058894fd2a5e1 Reviewed-on: https://go-review.googlesource.com/21523 Reviewed-by: Brad Fitzpatrick --- windows/asm.s | 10 ---------- windows/syscall.go | 6 ------ 2 files changed, 16 deletions(-) delete mode 100644 windows/asm.s diff --git a/windows/asm.s b/windows/asm.s deleted file mode 100644 index aaef9fe9..00000000 --- a/windows/asm.s +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2014 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build windows - -#include "textflag.h" - -TEXT ·use(SB),NOSPLIT,$0 - RET diff --git a/windows/syscall.go b/windows/syscall.go index a8cc609b..4e2fbe86 100644 --- a/windows/syscall.go +++ b/windows/syscall.go @@ -23,7 +23,6 @@ package windows // import "golang.org/x/sys/windows" import ( "syscall" - "unsafe" ) // ByteSliceFromString returns a NUL-terminated slice of bytes @@ -70,8 +69,3 @@ func (ts *Timespec) Nano() int64 { func (tv *Timeval) Nano() int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1000 } - -// use is a no-op, but the compiler cannot see that it is. -// Calling use(p) ensures that p is kept live until that point. -//go:noescape -func use(p unsafe.Pointer)