[coco] Remove unnecessary indentation in Use.cpp (#1768)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 8 Oct 2018 02:19:18 +0000 (11:19 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 8 Oct 2018 02:19:18 +0000 (11:19 +0900)
This commit removes unnecessary indentation in Use.cpp.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/coco/core/src/IR/Use.cpp

index c1f75c7..cd9b681 100644 (file)
@@ -25,10 +25,7 @@ void Use::value(Object *value)
 {
   if (_value)
   {
-    // TODO Remove unnecessary indentation
-    {
-      _value->mutable_uses()->erase(this);
-    }
+    _value->mutable_uses()->erase(this);
     _value = nullptr;
   }
 
@@ -37,10 +34,7 @@ void Use::value(Object *value)
   if (value)
   {
     _value = value;
-    // TODO Remove unnecessary indentation
-    {
-      _value->mutable_uses()->insert(this);
-    }
+    _value->mutable_uses()->insert(this);
   }
 
   assert(_value == value);