diff --git a/level_zero/core/source/device/bcs_split.cpp b/level_zero/core/source/device/bcs_split.cpp index 11e61a98fb..c54bbc435a 100644 --- a/level_zero/core/source/device/bcs_split.cpp +++ b/level_zero/core/source/device/bcs_split.cpp @@ -67,10 +67,6 @@ void BcsSplit::releaseResources() { } } -BcsSplit::Events::~Events() { - this->releaseResources(); -} - size_t BcsSplit::Events::obtainForSplit(Context *context, size_t maxEventCountInPool) { for (size_t i = 0; i < this->marker.size(); i++) { auto ret = this->marker[i]->queryStatus(); diff --git a/level_zero/core/source/device/bcs_split.h b/level_zero/core/source/device/bcs_split.h index 73a79f58af..76df903ed3 100644 --- a/level_zero/core/source/device/bcs_split.h +++ b/level_zero/core/source/device/bcs_split.h @@ -47,7 +47,6 @@ struct BcsSplit { void releaseResources(); Events(BcsSplit &bcsSplit) : bcsSplit(bcsSplit){}; - ~Events(); } events; std::vector cmdQs;