[vlmc-devel] Commands: Remove unneeded definitions of destructors

Yikai Lu git at videolan.org
Fri Jul 29 18:14:22 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Jul 30 00:06:36 2016 +0900| [9323dde68d6347686520164034f8c92d6241d3a4] | committer: Yikai Lu

Commands: Remove unneeded definitions of destructors

> https://code.videolan.org/videolan/vlmc/commit/9323dde68d6347686520164034f8c92d6241d3a4
---

 src/Commands/Commands.cpp | 13 -------------
 src/Commands/Commands.h   |  3 ---
 2 files changed, 16 deletions(-)

diff --git a/src/Commands/Commands.cpp b/src/Commands/Commands.cpp
index 6f07aca..74be010 100644
--- a/src/Commands/Commands.cpp
+++ b/src/Commands/Commands.cpp
@@ -95,10 +95,6 @@ Commands::Clip::Add::Add( std::shared_ptr<::Clip> const& clip, TrackWorkflow* tw
     retranslate();
 }
 
-Commands::Clip::Add::~Add()
-{
-}
-
 void
 Commands::Clip::Add::internalRedo()
 {
@@ -237,10 +233,6 @@ Commands::Clip::Split::Split( TrackWorkflow *tw, std::shared_ptr<::Clip> const&
     retranslate();
 }
 
-Commands::Clip::Split::~Split()
-{
-}
-
 void
 Commands::Clip::Split::retranslate()
 {
@@ -272,11 +264,6 @@ Commands::Clip::Link::Link( std::shared_ptr<::Clip> const& clipA, std::shared_pt
     retranslate();
 }
 
-Commands::Clip::Link::~Link()
-{
-
-}
-
 void
 Commands::Clip::Link::retranslate()
 {
diff --git a/src/Commands/Commands.h b/src/Commands/Commands.h
index 8a0c304..c09b94b 100644
--- a/src/Commands/Commands.h
+++ b/src/Commands/Commands.h
@@ -80,7 +80,6 @@ namespace Commands
         {
             public:
                 Add( std::shared_ptr<::Clip> const& clip, TrackWorkflow* tw, qint64 pos );
-                virtual ~Add();
                 virtual void    internalRedo();
                 virtual void    internalUndo();
                 virtual void    retranslate();
@@ -153,7 +152,6 @@ namespace Commands
             public:
                 Split( TrackWorkflow *tw, std::shared_ptr<::Clip> const& toSplit, qint64 newClipPos,
                            qint64 newClipBegin );
-                ~Split();
                 virtual void    internalRedo();
                 virtual void    internalUndo();
                 virtual void    retranslate();
@@ -170,7 +168,6 @@ namespace Commands
         {
             public:
                 Link( std::shared_ptr<::Clip> const& clipA, std::shared_ptr<::Clip> const& clipB );
-                ~Link();
                 virtual void    internalRedo();
                 virtual void    internalUndo();
                 virtual void    retranslate();



More information about the Vlmc-devel mailing list