[vlmc-devel] VlmcDebug: Don't bother changing the logfile at runtime

Hugo Beauzée-Luyssen git at videolan.org
Sat Feb 8 18:48:25 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Feb  8 17:09:52 2014 +0200| [21e467dbe48b0b0128db52a9a8992479316badb3] | committer: Hugo Beauzée-Luyssen

VlmcDebug: Don't bother changing the logfile at runtime

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=21e467dbe48b0b0128db52a9a8992479316badb3
---

 src/Tools/VlmcDebug.cpp |   20 --------------------
 src/Tools/VlmcDebug.h   |    1 -
 2 files changed, 21 deletions(-)

diff --git a/src/Tools/VlmcDebug.cpp b/src/Tools/VlmcDebug.cpp
index 641610d..31b757f 100644
--- a/src/Tools/VlmcDebug.cpp
+++ b/src/Tools/VlmcDebug.cpp
@@ -88,26 +88,6 @@ VlmcDebug::setup()
 }
 
 void
-VlmcDebug::logFileChanged( const QVariant& logFileV )
-{
-    QString logFile = logFileV.toString();
-    if ( logFile.isEmpty() == true )
-    {
-        m_logFile->close();
-        return ;
-    }
-    if ( logFile == m_logFile->fileName() )
-    {
-        fprintf( stderr, "Trying to use the same log file. Nothing will be done" );
-        return ;
-    }
-    m_logFile->close();
-    m_logFile->setFileName( logFile );
-    m_logFile->open( QFile::Append | QFile::Truncate );
-}
-
-
-void
 VlmcDebug::logLevelChanged( const QVariant &logLevel )
 {
 
diff --git a/src/Tools/VlmcDebug.h b/src/Tools/VlmcDebug.h
index 4062cd7..c76c603 100644
--- a/src/Tools/VlmcDebug.h
+++ b/src/Tools/VlmcDebug.h
@@ -58,7 +58,6 @@ class   VlmcDebug : public QObject, public Singleton<VlmcDebug>
         LogLevel        m_currentLogLevel;
 
     private slots:
-        void            logFileChanged( const QVariant& logFile );
         void            logLevelChanged( const QVariant& logLevel );
 
         friend class    Singleton<VlmcDebug>;



More information about the Vlmc-devel mailing list