aboutsummaryrefslogtreecommitdiffstats
path: root/sys/decl.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-10-29 23:42:36 +0200
committerDmitry Vyukov <dvyukov@google.com>2016-11-11 14:31:55 -0800
commitb40d502736438fcd899cda22e92fd0a159eecf4f (patch)
tree7c8998ec46220f2e42f34df34d28306c7661bc99 /sys/decl.go
parent1838728cc121fd6c4c6f52d9c837f1e32e0c86f4 (diff)
prog: remote Type argument from Arg.Size/Value
They are not necessary since we now always have types attached to args. Also remove sys.Type.InnerType as it is not necessary now as well.
Diffstat (limited to 'sys/decl.go')
-rw-r--r--sys/decl.go57
1 files changed, 0 insertions, 57 deletions
diff --git a/sys/decl.go b/sys/decl.go
index e19e4c028..66dc4370a 100644
--- a/sys/decl.go
+++ b/sys/decl.go
@@ -34,7 +34,6 @@ type Type interface {
Default() uintptr
Size() uintptr
Align() uintptr
- InnerType() Type // returns inner type for PtrType
}
func IsPad(t Type) bool {
@@ -98,10 +97,6 @@ func (t *ResourceType) Align() uintptr {
return t.Desc.Type.Align()
}
-func (t *ResourceType) InnerType() Type {
- return t
-}
-
type FileoffType struct {
TypeCommon
TypeSize uintptr
@@ -117,10 +112,6 @@ func (t *FileoffType) Align() uintptr {
return t.Size()
}
-func (t *FileoffType) InnerType() Type {
- return t
-}
-
type BufferKind int
const (
@@ -160,10 +151,6 @@ func (t *BufferType) Align() uintptr {
return 1
}
-func (t *BufferType) InnerType() Type {
- return t
-}
-
type VmaType struct {
TypeCommon
}
@@ -176,10 +163,6 @@ func (t *VmaType) Align() uintptr {
return t.Size()
}
-func (t *VmaType) InnerType() Type {
- return t
-}
-
type LenType struct {
TypeCommon
TypeSize uintptr
@@ -196,10 +179,6 @@ func (t *LenType) Align() uintptr {
return t.Size()
}
-func (t *LenType) InnerType() Type {
- return t
-}
-
type FlagsType struct {
TypeCommon
TypeSize uintptr
@@ -215,10 +194,6 @@ func (t *FlagsType) Align() uintptr {
return t.Size()
}
-func (t *FlagsType) InnerType() Type {
- return t
-}
-
type ConstType struct {
TypeCommon
TypeSize uintptr
@@ -235,10 +210,6 @@ func (t *ConstType) Align() uintptr {
return t.Size()
}
-func (t *ConstType) InnerType() Type {
- return t
-}
-
type StrConstType struct {
TypeCommon
TypeSize uintptr
@@ -253,10 +224,6 @@ func (t *StrConstType) Align() uintptr {
return 1
}
-func (t *StrConstType) InnerType() Type {
- return t
-}
-
type IntKind int
const (
@@ -284,10 +251,6 @@ func (t *IntType) Align() uintptr {
return t.Size()
}
-func (t *IntType) InnerType() Type {
- return t
-}
-
type FilenameType struct {
TypeCommon
}
@@ -300,10 +263,6 @@ func (t *FilenameType) Align() uintptr {
return 1
}
-func (t *FilenameType) InnerType() Type {
- return t
-}
-
type ArrayKind int
const (
@@ -330,10 +289,6 @@ func (t *ArrayType) Align() uintptr {
return t.Type.Align()
}
-func (t *ArrayType) InnerType() Type {
- return t
-}
-
type PtrType struct {
TypeCommon
Type Type
@@ -347,10 +302,6 @@ func (t *PtrType) Align() uintptr {
return t.Size()
}
-func (t *PtrType) InnerType() Type {
- return t.Type.InnerType()
-}
-
type StructType struct {
TypeCommon
Fields []Type
@@ -383,10 +334,6 @@ func (t *StructType) Align() uintptr {
return align
}
-func (t *StructType) InnerType() Type {
- return t
-}
-
type UnionType struct {
TypeCommon
Options []Type
@@ -416,10 +363,6 @@ func (t *UnionType) Align() uintptr {
return align
}
-func (t *UnionType) InnerType() Type {
- return t
-}
-
var ctors = make(map[string][]*Call)
// ResourceConstructors returns a list of calls that can create a resource of the given kind.