Add deadcode code which recursivley goes into all directories and verifies dangling variables.

This commit is contained in:
Harshavardhana
2015-03-02 18:03:01 -08:00
parent 022b89dd9b
commit c3ad0906e0
12 changed files with 228 additions and 25 deletions

View File

@@ -26,16 +26,6 @@ import "unsafe"
var (
// See http://golang.org/ref/spec#Numeric_types
// SizeUint8 is the byte size of a uint8.
sizeUint8 = int(unsafe.Sizeof(uint8(0)))
// SizeUint16 is the byte size of a uint16.
sizeUint16 = int(unsafe.Sizeof(uint16(0)))
// SizeUint32 is the byte size of a uint32.
sizeUint32 = int(unsafe.Sizeof(uint32(0)))
// SizeUint64 is the byte size of a uint64.
sizeUint64 = int(unsafe.Sizeof(uint64(0)))
sizeInt = int(C.sizeInt())
// SizeInt8 is the byte size of a int8.
sizeInt8 = int(unsafe.Sizeof(int8(0)))