Remove sem::UnwrapAccess()

Bug: tint:802
Change-Id: I8bc769e4e7c2a27a8793e2851d12f75ec20c97e9
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51142
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
Antonio Maiorano
2021-05-18 15:26:40 +00:00
committed by Commit Bot service account
parent 5f5f79c71f
commit be607c07a4
3 changed files with 2 additions and 14 deletions

View File

@@ -52,12 +52,6 @@ const Type* Type::UnwrapRef() const {
return type;
}
const Type* Type::UnwrapAccess() const {
// TODO(amaiorano): Delete this function
auto* type = this;
return type;
}
bool Type::is_scalar() const {
return IsAnyOf<F32, U32, I32, Bool>();
}

View File

@@ -52,9 +52,6 @@ class Type : public Castable<Type, Node> {
/// @returns the inner type if this is a reference, `this` otherwise
const Type* UnwrapRef() const;
/// @returns the inner most type if this is an access control, `this`
/// otherwise
const Type* UnwrapAccess() const;
/// @returns true if this type is a scalar
bool is_scalar() const;