From 157d2132c364635baec8a84d1a27b346466b546b Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sun, 23 Nov 2014 07:33:12 -0800 Subject: [PATCH] Remove unused functions Found by Clang 3.6: assistant/main.cpp:97:1: warning: unused function 'updateUserCollection' [-Wunused-function] Change-Id: I3fe006504e848914f38b1c481de13b3d10d1059c Reviewed-by: Christian Kandeler Reviewed-by: Friedemann Kleint --- src/assistant/assistant/main.cpp | 10 ---------- src/designer/src/lib/shared/actioneditor.cpp | 5 ----- src/designer/src/lib/shared/zoomwidget.cpp | 5 ----- 3 files changed, 20 deletions(-) diff --git a/src/assistant/assistant/main.cpp b/src/assistant/assistant/main.cpp index e4d5a4f..6b049d3 100644 --- a/src/assistant/assistant/main.cpp +++ b/src/assistant/assistant/main.cpp @@ -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 diff --git a/src/designer/src/lib/shared/actioneditor.cpp b/src/designer/src/lib/shared/actioneditor.cpp index 07ffee2..91297eb 100644 --- a/src/designer/src/lib/shared/actioneditor.cpp +++ b/src/designer/src/lib/shared/actioneditor.cpp @@ -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. diff --git a/src/designer/src/lib/shared/zoomwidget.cpp b/src/designer/src/lib/shared/zoomwidget.cpp index aa3c3f2..c95bd3a 100644 --- a/src/designer/src/lib/shared/zoomwidget.cpp +++ b/src/designer/src/lib/shared/zoomwidget.cpp @@ -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 -- 2.7.4