From: 박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Mon, 26 Aug 2019 07:33:54 +0000 (+0900) Subject: [loco] Remove unused methods from Push (#6904) X-Git-Tag: accepted/tizen/unified/20190903.052428~133 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32e05d51b67720746b2ddfc8a1d14669b6f6042b;p=platform%2Fcore%2Fml%2Fnnfw.git [loco] Remove unused methods from Push (#6904) No code uses "rank" and "dim" method in Push class. Signed-off-by: Jonghyun Park --- diff --git a/compiler/loco/include/loco/IR/Nodes.h b/compiler/loco/include/loco/IR/Nodes.h index 9f4a73d..11bdc7a 100644 --- a/compiler/loco/include/loco/IR/Nodes.h +++ b/compiler/loco/include/loco/IR/Nodes.h @@ -74,13 +74,6 @@ public: */ bool indexed(void) const { return _index != -1; } -public: - // This method works only when "graph() != nullptr" and "indexed()" - uint32_t rank(void) const; - - // This method works only when "graph() != nullptr" and "indexed()" - const Dimension &dim(uint32_t axis) const; - private: int64_t _index = -1; // Uninitialized }; diff --git a/compiler/loco/src/IR/Nodes.cpp b/compiler/loco/src/IR/Nodes.cpp index f480e7a..df74e0c 100644 --- a/compiler/loco/src/IR/Nodes.cpp +++ b/compiler/loco/src/IR/Nodes.cpp @@ -57,20 +57,6 @@ GraphOutputIndex Push::index(void) const return static_cast(_index); } -uint32_t Push::rank(void) const -{ - assert(graph() != nullptr); - assert(indexed()); - return graph()->outputs()->at(index())->shape()->rank(); -} - -const Dimension &Push::dim(uint32_t axis) const -{ - assert(graph() != nullptr); - assert(indexed()); - return graph()->outputs()->at(index())->shape()->dim(axis); -} - void link(GraphOutput *output, Push *push) { push->index(output->index()); } Push *push_node(Graph *g, const GraphOutputIndex &index)