From 1c2ed7f49f08de08dd0d2e4b6fa51fa8f3a9a07f Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 5 Jun 2018 12:43:51 +0200 Subject: core: remove "static void copyPath" unused Remove copyPath since it is static and not called to avoid clang warning Signed-off-by: Jan Iversen --- core/qthelper.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'core') diff --git a/core/qthelper.cpp b/core/qthelper.cpp index b09e125ca..d6a61b39c 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -711,20 +711,6 @@ QString getPrintingTemplatePathBundle() return path; } -static void copyPath(QString src, QString dst) -{ - QDir dir(src); - if (!dir.exists()) - return; - foreach (QString d, dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot)) { - QString dst_path = dst + QDir::separator() + d; - dir.mkpath(dst_path); - copyPath(src + QDir::separator() + d, dst_path); - } - foreach (QString f, dir.entryList(QDir::Files)) - QFile::copy(src + QDir::separator() + f, dst + QDir::separator() + f); -} - int gettimezoneoffset(timestamp_t when) { QDateTime dt1, dt2; -- cgit v1.2.3-70-g09d2