Skip to content

Commit abcf78d

Browse files
authored
[SYCL][NFC] Remove unused handler helper (#20963)
1 parent ac19d5a commit abcf78d

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

sycl/include/sycl/handler.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ template <typename Type> struct get_kernel_wrapper_name_t {
248248
};
249249

250250
__SYCL_EXPORT device getDeviceFromHandler(handler &);
251-
device_impl &getDeviceImplFromHandler(handler &);
252251

253252
// Checks if a device_global has any registered kernel usage.
254253
__SYCL_EXPORT bool isDeviceGlobalUsedInKernel(const void *DeviceGlobalPtr);
@@ -2640,7 +2639,6 @@ class __SYCL_EXPORT handler {
26402639
typename PropertyListT>
26412640
friend class accessor;
26422641
friend device detail::getDeviceFromHandler(handler &);
2643-
friend detail::device_impl &detail::getDeviceImplFromHandler(handler &);
26442642

26452643
template <typename DataT, int Dimensions, access::mode AccessMode,
26462644
access::target AccessTarget, access::placeholder IsPlaceholder>

sycl/source/handler.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ markBufferAsInternal(const std::shared_ptr<buffer_impl> &BufImpl) {
5757
BufImpl->markAsInternal();
5858
}
5959

60-
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
61-
// TODO: Check if two ABI exports below are still necessary.
62-
#endif
63-
device_impl &getDeviceImplFromHandler(handler &CGH) {
64-
return getSyclObjImpl(CGH)->get_device();
65-
}
66-
6760
device getDeviceFromHandler(handler &CGH) {
6861
return createSyclObjFromImpl<device>(getSyclObjImpl(CGH)->get_device());
6962
}

0 commit comments

Comments
 (0)