remove temporary code after resolving the dependency 49/261449/2
authorHermet Park <chuneon.park@samsung.com>
Mon, 19 Jul 2021 08:15:08 +0000 (17:15 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 29 Jul 2021 02:51:35 +0000 (02:51 +0000)
Change-Id: I48261134861299c9fd6fbe7dd4f729dcbf400b15

inc/thorvg.h
src/lib/tvgPicture.cpp

index 3edaeb5d263d0f59ca6b0e9c1aa7e4f94474768c..25ecff06ac6b90789a9869c73acc594596d91775 100644 (file)
@@ -1016,8 +1016,7 @@ public:
      *
      * @warning: you have responsibility to release the @p data memory if the @p copy is true
      */
-    Result load(const char* data, uint32_t size, bool copy) noexcept;
-    Result load(const char* data, uint32_t size) noexcept;
+    Result load(const char* data, uint32_t size, bool copy = false) noexcept;
 
     /**
      * @brief Resize the picture content with the given width and height.
index 5a26e2938aa01b746737525a614bfa30fb9951db..ed4d227d798300be4a6337057959ba9c1b54570b 100644 (file)
@@ -61,12 +61,6 @@ Result Picture::load(const char* data, uint32_t size, bool copy) noexcept
 }
 
 
-Result Picture::load(const char* data, uint32_t size) noexcept
-{
-    return pImpl->load(data, size, false);
-}
-
-
 Result Picture::load(uint32_t* data, uint32_t w, uint32_t h, bool copy) noexcept
 {
     if (!data || w <= 0 || h <= 0) return Result::InvalidArguments;