[Libreoffice-commits] core.git: compilerplugins/clang include/vcl vcl/osx

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 26 06:21:20 UTC 2019


 compilerplugins/clang/store/constantfunction.cxx |    4 ----
 compilerplugins/clang/unusedmethods.results      |    2 --
 include/vcl/svmain.hxx                           |    1 -
 vcl/osx/salinst.cxx                              |    2 +-
 4 files changed, 1 insertion(+), 8 deletions(-)

New commits:
commit e1a75c1c3069efa303c480d0e50928c0761f468f
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Apr 25 19:15:50 2019 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Fri Apr 26 08:20:09 2019 +0200

    There is no ImplSVMainHook()
    
    Change-Id: Ief2636425712f60cfc6e8f68ee0d3fb01608d8ba
    Reviewed-on: https://gerrit.libreoffice.org/71317
    Tested-by: Jenkins
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

diff --git a/compilerplugins/clang/store/constantfunction.cxx b/compilerplugins/clang/store/constantfunction.cxx
index a1b795d63ea7..0673df7a2521 100644
--- a/compilerplugins/clang/store/constantfunction.cxx
+++ b/compilerplugins/clang/store/constantfunction.cxx
@@ -179,10 +179,6 @@ bool ConstantFunction::VisitFunctionDecl(const FunctionDecl * pFunctionDecl) {
     if (aFunctionName == "ExceptionThrower_acquire_release_nop") {
         return true;
     }
-    // different hook function is called on different platforms, /vcl/source/app/svmainhook.cxx
-    if (aFunctionName == "ImplSVMainHook") {
-        return true;
-    }
     // used as a callback, /vcl/source/filter/jpeg/JpegReader.cxx
     if (aFunctionName == "term_source") {
         return true;
diff --git a/compilerplugins/clang/unusedmethods.results b/compilerplugins/clang/unusedmethods.results
index 02bb0d181978..fec68affafdc 100644
--- a/compilerplugins/clang/unusedmethods.results
+++ b/compilerplugins/clang/unusedmethods.results
@@ -688,8 +688,6 @@ include/vcl/svapp.hxx:169
      ApplicationEvent::ApplicationEvent(enum ApplicationEvent::Type,const class std::__debug::vector<class rtl::OUString, class std::allocator<class rtl::OUString> > &)
 include/vcl/svapp.hxx:798
     void Application::AppEvent(const class ApplicationEvent &)
-include/vcl/svmain.hxx:27
-    _Bool ImplSVMainHook(int *)
 include/vcl/syswin.hxx:172
     void SystemWindow::SetIdleDebugName(const char *)
 include/vcl/tabdlg.hxx:49
diff --git a/include/vcl/svmain.hxx b/include/vcl/svmain.hxx
index 6305c090d289..ca6010784490 100644
--- a/include/vcl/svmain.hxx
+++ b/include/vcl/svmain.hxx
@@ -24,7 +24,6 @@
 #include <vcl/dllapi.h>
 
 // #i47888# allow for alternative initialization as required for e.g. MacOSX
-bool ImplSVMainHook( int* );
 VCL_DLLPUBLIC int ImplSVMain();
 
 VCL_DLLPUBLIC int SVMain();
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index 089b1e438b66..b31f870d9e12 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -979,7 +979,7 @@ bool AquaSalInstance::SVMainHook(int* pnInit)
     NSApplicationMain( 1, pArgv );
 #endif
 
-    return true; // indicate that ImplSVMainHook is implemented
+    return true;
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list