summaryrefslogtreecommitdiff
path: root/neuralnetworks/utils/common/src
diff options
context:
space:
mode:
authorMichael Butler <butlermichael@google.com>2021-10-14 22:04:59 -0700
committerMichael Butler <butlermichael@google.com>2021-10-26 21:17:10 +0000
commit301ef060e92d87772f30f309d236bf02bfd75d13 (patch)
tree9f1d9bb38a11b702206ff4cf741613acf9559a80 /neuralnetworks/utils/common/src
parent68e98f40dc84cbe536721e8926ca075019c97999 (diff)
Remove hal::utils::countNumberOfConsumers
This CL removes hal::utils::countNumberOfConsumers and uses the existing nn::countNumberOfConsumers. This change is part of a larger chain of changes to remove HIDL and AIDL libraries from neuralnetworks_utils_hal_common. Bug: N/A Test: mma Change-Id: I7d06ea355eae7aa80b94b09a23d606bbb2322120
Diffstat (limited to 'neuralnetworks/utils/common/src')
-rw-r--r--neuralnetworks/utils/common/src/CommonUtils.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/neuralnetworks/utils/common/src/CommonUtils.cpp b/neuralnetworks/utils/common/src/CommonUtils.cpp
index 235ba29d08..b4fbfa7b3b 100644
--- a/neuralnetworks/utils/common/src/CommonUtils.cpp
+++ b/neuralnetworks/utils/common/src/CommonUtils.cpp
@@ -331,11 +331,6 @@ nn::GeneralResult<std::reference_wrapper<const nn::Request>> convertRequestFromP
return **maybeRequestInSharedOut;
}
-nn::GeneralResult<std::vector<uint32_t>> countNumberOfConsumers(
- size_t numberOfOperands, const std::vector<nn::Operation>& operations) {
- return nn::countNumberOfConsumers(numberOfOperands, operations);
-}
-
nn::GeneralResult<hidl_memory> createHidlMemoryFromSharedMemory(const nn::SharedMemory& memory) {
if (memory == nullptr) {
return NN_ERROR() << "Memory must be non-empty";