From 9f349a4efca6ef10efaf2b9c70f2ebb22278747e Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 3 Jun 2018 20:52:31 +0200 Subject: Cleanup: make copyPath() function of static linkage The function was only used in core/qthelper.cpp Signed-off-by: Berthold Stoeger --- core/helpers.h | 1 - core/qthelper.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/helpers.h b/core/helpers.h index e690245ca..84551b49e 100644 --- a/core/helpers.h +++ b/core/helpers.h @@ -26,7 +26,6 @@ QString get_pressure_unit(); QString getSubsurfaceDataPath(QString folderToFind); QString getPrintingTemplatePathUser(); QString getPrintingTemplatePathBundle(); -void copyPath(QString src, QString dst); extern const QString get_dc_nickname(const char *model, uint32_t deviceid); int gettimezoneoffset(timestamp_t when = 0); int parseDurationToSeconds(const QString &text); diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 638931055..cf4f8d021 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -712,7 +712,7 @@ QString getPrintingTemplatePathBundle() return path; } -void copyPath(QString src, QString dst) +static void copyPath(QString src, QString dst) { QDir dir(src); if (!dir.exists()) -- cgit v1.2.3-70-g09d2