Remove p[i] for ptr-typed p

This commit is contained in:
Nigel Tao committed 2018-05-04 13:29:51 +10:00
1 parent 1435f1d43c
commit 877b4f648f
4 files changed
+2 -13

No files matched your search

-5
View File
@@ -727,11 +727,6 @@ func (n *TypeExpr) IsArrayType() bool {
return n.id0 == t.IDArray
}
func (n *TypeExpr) IsPtrType() bool {
// TODO: nptr??
return n.id0 == t.IDPtr
}
func (n *TypeExpr) IsSliceType() bool {
return n.id0 == t.IDSlice
}