From: sjsujinkim Date: Wed, 21 Mar 2018 08:00:45 +0000 (+0900) Subject: Remove original codes X-Git-Tag: 0.1~642 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a59622491cec5fd67057323019fc7e5d0110d7b3;p=platform%2Fcore%2Fml%2Fnnfw.git Remove original codes --- diff --git a/src/runtime/ref/nn/runtime/NeuralNetworks.cpp b/src/runtime/ref/nn/runtime/NeuralNetworks.cpp index 2b2ead4..47a833c 100644 --- a/src/runtime/ref/nn/runtime/NeuralNetworks.cpp +++ b/src/runtime/ref/nn/runtime/NeuralNetworks.cpp @@ -255,7 +255,6 @@ void ANeuralNetworksMemory_free(ANeuralNetworksMemory* memory) { } int ANeuralNetworksModel_create(ANeuralNetworksModel** model) { - // Dummy Implementation if (!model) { std::cout << "ANeuralNetworksModel_create passed a nullptr" << std::endl; return ANEURALNETWORKS_UNEXPECTED_NULL; @@ -267,22 +266,6 @@ int ANeuralNetworksModel_create(ANeuralNetworksModel** model) { } *model = reinterpret_cast(m); return ANEURALNETWORKS_NO_ERROR; - - // Original code for reference -#if 0 - initVLogMask(); - if (!model) { - LOG(ERROR) << "ANeuralNetworksModel_create passed a nullptr"; - return ANEURALNETWORKS_UNEXPECTED_NULL; - } - ModelBuilder* m = new ModelBuilder(); - if (m == nullptr) { - *model = nullptr; - return ANEURALNETWORKS_OUT_OF_MEMORY; - } - *model = reinterpret_cast(m); - return ANEURALNETWORKS_NO_ERROR; -#endif } void ANeuralNetworksModel_free(ANeuralNetworksModel* model) {