mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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>
This commit is contained in:
parent
9293268027
commit
1c2ed7f49f
1 changed files with 0 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue