Skip to content

Commit 1813143

Browse files
author
Alexander Batashev
committed
Remove some unused code
1 parent d375f2a commit 1813143

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ class Util {
8181
/// half class.
8282
static bool isSyclHalfType(const QualType &Ty);
8383

84-
/// Checks whether given clang type is a full specialization of the SYCL
85-
/// property_list class.
86-
static bool isPropertyListType(const QualType &Ty);
87-
8884
/// Checks whether given clang type is a full specialization of the SYCL
8985
/// accessor_property_list class.
9086
static bool isAccessorPropertyListType(const QualType &Ty);
@@ -1198,8 +1194,6 @@ class SyclKernelFieldChecker : public SyclKernelFieldHandler {
11981194
return;
11991195
}
12001196
QualType PropListTy = PropList.getAsType();
1201-
if (Util::isPropertyListType(PropListTy))
1202-
return;
12031197
if (!Util::isAccessorPropertyListType(PropListTy)) {
12041198
SemaRef.Diag(Loc,
12051199
diag::err_sycl_invalid_accessor_property_template_param);
@@ -1421,9 +1415,6 @@ class SyclKernelDeclCreator : public SyclKernelFieldHandler {
14211415
return;
14221416
const auto PropList = cast<TemplateArgument>(AccTy->getTemplateArgs()[5]);
14231417
QualType PropListTy = PropList.getAsType();
1424-
// property_list contains runtime properties, it shouldn't be handled here.
1425-
if (Util::isPropertyListType(PropListTy))
1426-
return;
14271418
const auto *AccPropListDecl =
14281419
cast<ClassTemplateSpecializationDecl>(PropListTy->getAsRecordDecl());
14291420
const auto TemplArg = AccPropListDecl->getTemplateArgs()[0];
@@ -3455,10 +3446,6 @@ bool Util::isSyclSpecConstantType(const QualType &Ty) {
34553446
return matchQualifiedTypeName(Ty, Scopes);
34563447
}
34573448

3458-
bool Util::isPropertyListType(const QualType &Ty) {
3459-
return isSyclType(Ty, "property_list");
3460-
}
3461-
34623449
bool Util::isSyclBufferLocationType(const QualType &Ty) {
34633450
const StringRef &PropertyName = "buffer_location";
34643451
const StringRef &InstanceName = "instance";

0 commit comments

Comments
 (0)