[loco] Remove unused methods from Push (#6904)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 26 Aug 2019 07:33:54 +0000 (16:33 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 26 Aug 2019 07:33:54 +0000 (16:33 +0900)
No code uses "rank" and "dim" method in Push class.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
compiler/loco/include/loco/IR/Nodes.h
compiler/loco/src/IR/Nodes.cpp

index 9f4a73d..11bdc7a 100644 (file)
@@ -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
 };
index f480e7a..df74e0c 100644 (file)
@@ -57,20 +57,6 @@ GraphOutputIndex Push::index(void) const
   return static_cast<GraphOutputIndex>(_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)