Remove unused functions
authorThiago Macieira <thiago.macieira@intel.com>
Sun, 23 Nov 2014 15:33:12 +0000 (07:33 -0800)
committerThiago Macieira <thiago.macieira@intel.com>
Fri, 9 Jan 2015 17:16:37 +0000 (18:16 +0100)
Found by Clang 3.6:
assistant/main.cpp:97:1: warning: unused function 'updateUserCollection' [-Wunused-function]

Change-Id: I3fe006504e848914f38b1c481de13b3d10d1059c
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
src/assistant/assistant/main.cpp
src/designer/src/lib/shared/actioneditor.cpp
src/designer/src/lib/shared/zoomwidget.cpp

index e4d5a4f..6b049d3 100644 (file)
@@ -93,16 +93,6 @@ updateLastPagesOnUnregister(QHelpEngineCore& helpEngine, const QString& nsName)
     }
 }
 
-bool
-updateUserCollection(QHelpEngineCore& user, const QHelpEngineCore& caller)
-{
-    TRACE_OBJ
-    if (!CollectionConfiguration::isNewer(caller, user))
-        return false;
-    CollectionConfiguration::copyConfiguration(caller, user);
-    return true;
-}
-
 void stripNonexistingDocs(QHelpEngineCore& collection)
 {
     TRACE_OBJ
index 07ffee2..91297eb 100644 (file)
@@ -474,11 +474,6 @@ void ActionEditor::slotNewAction()
     }
 }
 
-static inline bool isSameIcon(const QIcon &i1, const QIcon &i2)
-{
-    return i1.cacheKey() == i2.cacheKey();
-}
-
 // return a FormWindow command to apply an icon or a reset command in case it
 //  is empty.
 
index aa3c3f2..c95bd3a 100644 (file)
@@ -55,11 +55,6 @@ enum { debugZoomWidget = 0 };
 
 static const int menuZoomList[] = { 100, 25, 50, 75, 125, 150 , 175, 200 };
 
-static inline QSize qCeiling(const QSizeF &s)
-{
-    return QSize(qCeil(s.width()), qCeil(s.height()));
-}
-
 namespace qdesigner_internal {
 
 // ---------- ZoomMenu