Skip to content

Commit 3a691a7

Browse files
Remove _init_helper from _sycl_event.pxd (#530)
1 parent c4fc6f0 commit 3a691a7

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

dpctl/_sycl_event.pxd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ cdef class _SyclEventRaw:
4242
cdef public class SyclEventRaw(_SyclEventRaw) [object PySyclEventRawObject, type PySyclEventRawType]:
4343
@staticmethod
4444
cdef SyclEventRaw _create (DPCTLSyclEventRef event)
45-
@staticmethod
46-
cdef void _init_helper(_SyclEventRaw event, DPCTLSyclEventRef ERef)
4745
cdef int _init_event_default(self)
4846
cdef int _init_event_from__SyclEventRaw(self, _SyclEventRaw other)
4947
cdef int _init_event_from_SyclEvent(self, SyclEvent event)

dpctl/_sycl_event.pyx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ cdef void _event_capsule_deleter(object o):
100100
)
101101
DPCTLEvent_Delete(ERef)
102102

103+
cdef void _init_helper(_SyclEventRaw event, DPCTLSyclEventRef ERef):
104+
event._event_ref = ERef
103105

104106
cdef class _SyclEventRaw:
105107
""" Python wrapper class for a ``cl::sycl::event``.
@@ -113,14 +115,10 @@ cdef class SyclEventRaw(_SyclEventRaw):
113115
""" Python wrapper class for a ``cl::sycl::event``.
114116
"""
115117

116-
@staticmethod
117-
cdef void _init_helper(_SyclEventRaw event, DPCTLSyclEventRef ERef):
118-
event._event_ref = ERef
119-
120118
@staticmethod
121119
cdef SyclEventRaw _create(DPCTLSyclEventRef eref):
122120
cdef _SyclEventRaw ret = _SyclEventRaw.__new__(_SyclEventRaw)
123-
SyclEventRaw._init_helper(ret, eref)
121+
_init_helper(ret, eref)
124122
return SyclEventRaw(ret)
125123

126124
cdef int _init_event_default(self):

0 commit comments

Comments
 (0)