From aa3008c3fcb30735e090ea0671113a173f834e47 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 16 Jul 2018 21:08:26 +0900 Subject: [PATCH] player: remove constructor that accepts functional arguments. it's not good usage than explicitly function call by users, if the function is possibly failed. Change-Id: I0e008093f6627ff24e8bc1d2e9ce0979dcca57bd --- inc/lottieplayer.h | 2 -- src/lottie/lottieplayer.cpp | 4 ---- 2 files changed, 6 deletions(-) diff --git a/inc/lottieplayer.h b/inc/lottieplayer.h index dfda152..49904b4 100644 --- a/inc/lottieplayer.h +++ b/inc/lottieplayer.h @@ -44,8 +44,6 @@ public: ~LOTPlayer(); LOTPlayer(); - LOTPlayer(const char *filePath); - bool setFilePath(const char *filePath); void setSize(int width, int height); diff --git a/src/lottie/lottieplayer.cpp b/src/lottie/lottieplayer.cpp index b71ffdb..b68e0f4 100644 --- a/src/lottie/lottieplayer.cpp +++ b/src/lottie/lottieplayer.cpp @@ -113,10 +113,6 @@ LOTPlayer::~LOTPlayer() delete d; } -LOTPlayer::LOTPlayer(const char *filePath):d(new LOTPlayerPrivate()) -{ - d->setFilePath(filePath); -} /** * \breif Brief abput the Api. -- 2.34.1