[Libreoffice-commits] core.git: comphelper/source

Muhammet Kara (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 30 06:20:58 UTC 2019


 comphelper/source/misc/lok.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 610050fcd745694a6dee58152bfc1c4d85535165
Author:     Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Sat Aug 3 00:46:59 2019 +0300
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Aug 30 08:20:14 2019 +0200

    Remove work-around for isMobile()
    
    Let's remove this dangerous work-around since
    it is no longer needed after 6ceab5b233da675b25f42fadff9e85d404903322
    
    Change-Id: Idb18d83f9eac571334fe8bfcd7f212f2f0a930a9
    Reviewed-on: https://gerrit.libreoffice.org/78282
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
    Tested-by: Jenkins

diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index 253d94500f13..b18314d155e5 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -66,10 +66,6 @@ void setMobile(int nViewId, bool bMobile)
 
 bool isMobile(int nViewId)
 {
-    // No view given, so act as a global var
-    if (nViewId == -1)
-            return g_vIsViewMobile.size() > 0;
-
     if (g_vIsViewMobile.find(nViewId) != g_vIsViewMobile.end())
         return g_vIsViewMobile[nViewId];
     else


More information about the Libreoffice-commits mailing list