mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 13:38:00 +00:00
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:
committed by
Commit Bot service account
parent
5f5f79c71f
commit
be607c07a4
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user