diff options
author | jan Iversen <jani@libreoffice.org> | 2018-06-05 12:43:51 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-06-05 16:45:15 +0300 |
commit | 1c2ed7f49f08de08dd0d2e4b6fa51fa8f3a9a07f (patch) | |
tree | 9423e7aacf43d3e83048a2086985b2756d19d45d /core/qthelper.cpp | |
parent | 9293268027e193c9da7b069706ffcb5a3ac4c68f (diff) | |
download | subsurface-1c2ed7f49f08de08dd0d2e4b6fa51fa8f3a9a07f.tar.gz |
core: remove "static void copyPath" unused
Remove copyPath since it is static and not called
to avoid clang warning
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r-- | core/qthelper.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
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; |