From 5932fc4ab8cbac6ba093fe5375dcba873b42b2e3 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 24 Nov 2014 13:53:47 +0100 Subject: [PATCH] prune dead fixFilename() function Change-Id: I84bafecccec286094701874b2780b45d08797524 Reviewed-by: Joerg Bornemann --- qmake/generators/win32/msvc_vcproj.cpp | 16 ---------------- qmake/generators/win32/msvc_vcproj.h | 1 - 2 files changed, 17 deletions(-) diff --git a/qmake/generators/win32/msvc_vcproj.cpp b/qmake/generators/win32/msvc_vcproj.cpp index 7faab0b1bcb..379b4189cec 100644 --- a/qmake/generators/win32/msvc_vcproj.cpp +++ b/qmake/generators/win32/msvc_vcproj.cpp @@ -1688,22 +1688,6 @@ bool VcprojGenerator::openOutput(QFile &file, const QString &/*build*/) const return Win32MakefileGenerator::openOutput(file, QString()); } -QString VcprojGenerator::fixFilename(QString ofile) const -{ - ofile = Option::fixPathToLocalOS(ofile); - int slashfind = ofile.lastIndexOf(Option::dir_sep); - if(slashfind == -1) { - ofile.replace('-', '_'); - } else { - int hyphenfind = ofile.indexOf('-', slashfind); - while (hyphenfind != -1 && slashfind < hyphenfind) { - ofile.replace(hyphenfind, 1, '_'); - hyphenfind = ofile.indexOf('-', hyphenfind + 1); - } - } - return ofile; -} - void VcprojGenerator::outputVariables() { #if 0 diff --git a/qmake/generators/win32/msvc_vcproj.h b/qmake/generators/win32/msvc_vcproj.h index 28705348356..4567a90635b 100644 --- a/qmake/generators/win32/msvc_vcproj.h +++ b/qmake/generators/win32/msvc_vcproj.h @@ -85,7 +85,6 @@ protected: virtual bool openOutput(QFile &file, const QString &build) const; virtual void outputVariables(); - QString fixFilename(QString ofile) const; void initOld(); virtual void initProject();