Skip to content

Commit f3caaa1

Browse files
Merge pull request #1597 from IntelPython/remove-extra-static-copy-of-dpctl-capi
Remove private method lookup in dpctl_capi
2 parents 116cb3b + 482bd55 commit f3caaa1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

dpctl/apis/include/dpctl4pybind11.hpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class dpctl_capi
181181

182182
static auto &get()
183183
{
184-
static dpctl_capi api = lookup();
184+
static dpctl_capi api{};
185185
return api;
186186
}
187187

@@ -404,12 +404,6 @@ class dpctl_capi
404404
dpctl_capi &operator=(dpctl_capi const &) = default;
405405
dpctl_capi &operator=(dpctl_capi &&) = default;
406406

407-
static dpctl_capi &lookup()
408-
{
409-
static dpctl_capi api;
410-
return api;
411-
}
412-
413407
}; // struct dpctl_capi
414408
} // namespace detail
415409
} // namespace dpctl

0 commit comments

Comments
 (0)