Skip to content

Commit 054f2b5

Browse files
Remove not used method
Change-Id: I6109d4f1521de157f449cad92ecfbab3d133f815 Signed-off-by: Dunajski, Bartosz <[email protected]>
1 parent ca84ebf commit 054f2b5

File tree

6 files changed

+4
-33
lines changed

6 files changed

+4
-33
lines changed

runtime/context/context.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ class Context : public BaseObject<_cl_context> {
133133

134134
ContextType peekContextType() { return this->contextType; }
135135

136-
MOCKABLE_VIRTUAL CommandStreamReceiver *getCommandStreamReceiverForBlitOperation(MemObj &memObj) const;
137136
MOCKABLE_VIRTUAL BlitOperationResult blitMemoryToAllocation(MemObj &memObj, GraphicsAllocation *memory, void *hostPtr, size_t size) const;
138137

139138
protected:

runtime/context/context_extra.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018-2019 Intel Corporation
2+
* Copyright (C) 2018-2020 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -15,10 +15,6 @@ cl_int Context::processExtraProperties(cl_context_properties propertyType, cl_co
1515
return CL_INVALID_PROPERTY;
1616
}
1717

18-
CommandStreamReceiver *Context::getCommandStreamReceiverForBlitOperation(MemObj &memObj) const {
19-
return nullptr;
20-
}
21-
2218
BlitOperationResult Context::blitMemoryToAllocation(MemObj &memObj, GraphicsAllocation *memory, void *hostPtr, size_t size) const {
2319
return BlitOperationResult::Unsupported;
2420
}

unit_tests/command_queue/blit_enqueue_tests.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ struct BlitAuxTranslationTests : public ::testing::Test {
2727
bcsCsr->setupContext(*bcsOsContext);
2828
bcsCsr->initializeTagAllocation();
2929
}
30-
CommandStreamReceiver *getCommandStreamReceiverForBlitOperation(MemObj &memObj) const override {
31-
return bcsCsr.get();
32-
}
30+
3331
BlitOperationResult blitMemoryToAllocation(MemObj &memObj, GraphicsAllocation *memory, void *hostPtr, size_t size) const override {
3432
auto blitProperties = BlitProperties::constructPropertiesForReadWriteBuffer(BlitterConstants::BlitDirection::HostPtrToBuffer,
3533
*bcsCsr, memory, nullptr,

unit_tests/context/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#
2-
# Copyright (C) 2017-2019 Intel Corporation
2+
# Copyright (C) 2017-2020 Intel Corporation
33
#
44
# SPDX-License-Identifier: MIT
55
#
66

77
set(IGDRCL_SRCS_tests_context
88
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
9-
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/context_extra_properties_tests.cpp
109
${CMAKE_CURRENT_SOURCE_DIR}/context_get_info_tests.cpp
1110
${CMAKE_CURRENT_SOURCE_DIR}/context_multi_device_tests.cpp
1211
${CMAKE_CURRENT_SOURCE_DIR}/context_negative_tests.cpp

unit_tests/context/context_extra_properties_tests.cpp

Lines changed: 0 additions & 19 deletions
This file was deleted.

unit_tests/mem_obj/buffer_tests.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,7 @@ struct BcsBufferTests : public ::testing::Test {
654654
bcsCsr->setupContext(*bcsOsContext);
655655
bcsCsr->initializeTagAllocation();
656656
}
657-
CommandStreamReceiver *getCommandStreamReceiverForBlitOperation(MemObj &memObj) const override {
658-
return bcsCsr.get();
659-
}
657+
660658
BlitOperationResult blitMemoryToAllocation(MemObj &memObj, GraphicsAllocation *memory, void *hostPtr, size_t size) const override {
661659
auto blitProperties = BlitProperties::constructPropertiesForReadWriteBuffer(BlitterConstants::BlitDirection::HostPtrToBuffer,
662660
*bcsCsr, memory, nullptr,

0 commit comments

Comments
 (0)