svg_loader: Remove unnecessary code 56/289756/1
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 30 Aug 2022 01:54:20 +0000 (10:54 +0900)
committerMichal Szczecinski <mihashco89@gmail.com>
Tue, 14 Mar 2023 06:43:57 +0000 (07:43 +0100)
Change-Id: Ia3e0d35ed48b3c04c2408ca24d48bf43c32cc54c

src/loaders/svg/tvgSvgLoader.cpp

index 8b4dc7b..357d19d 100644 (file)
@@ -1909,8 +1909,6 @@ static void _styleInherit(SvgStyleProperty* child, const SvgStyleProperty* paren
         if (parent->stroke.paint.url) {
             if (child->stroke.paint.url) free(child->stroke.paint.url);
             child->stroke.paint.url = _copyId(parent->stroke.paint.url);
-        } else {
-            child->stroke.paint.url = nullptr;
         }
     }
     if (!((int)child->stroke.flags & (int)SvgStrokeFlags::Opacity)) {
@@ -1971,8 +1969,6 @@ static void _styleCopy(SvgStyleProperty* to, const SvgStyleProperty* from)
         if (from->stroke.paint.url) {
             if (to->stroke.paint.url) free(to->stroke.paint.url);
             to->stroke.paint.url = _copyId(from->stroke.paint.url);
-        } else {
-            to->stroke.paint.url = nullptr;
         }
     }
     if (((int)from->stroke.flags & (int)SvgStrokeFlags::Opacity)) {