purge unused VcprojGenerator::findTemplate()
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Fri, 1 Jun 2012 09:26:34 +0000 (11:26 +0200)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Tue, 19 Jun 2012 14:39:58 +0000 (16:39 +0200)
it looked fishy for years. now i know why. ;)

Change-Id: I822cadecaf8d914f383f9f907b92507852e434b4

qmake/generators/win32/msvc_vcproj.cpp
qmake/generators/win32/msvc_vcproj.h

index cd45ea6..b228917 100644 (file)
@@ -1577,22 +1577,6 @@ QString VcprojGenerator::fixFilename(QString ofile) const
     return ofile;
 }
 
-QString VcprojGenerator::findTemplate(QString file)
-{
-    QString ret;
-    if(!exists((ret = file)) &&
-       !exists((ret = QString((project->isHostBuild()
-                               ? Option::mkfile::qmakespec : Option::mkfile::xqmakespec) + '/' + file))) &&
-       !exists((ret = QString(QLibraryInfo::location(QLibraryInfo::HostDataPath) + "/win32-msvc.net/" + file))) &&
-       !exists((ret = QString(QLibraryInfo::location(QLibraryInfo::HostDataPath) + "/win32-msvc2002/" + file))) &&
-       !exists((ret = QString(QLibraryInfo::location(QLibraryInfo::HostDataPath) + "/win32-msvc2003/" + file))) &&
-       !exists((ret = QString(QLibraryInfo::location(QLibraryInfo::HostDataPath) + "/win32-msvc2005/" + file))) &&
-       !exists((ret = QString(QLibraryInfo::location(QLibraryInfo::HostDataPath) + "/win32-msvc2008/" + file))))
-        return "";
-    debug_msg(1, "Generator: MSVC.NET: Found template \'%s\'", ret.toLatin1().constData());
-    return ret;
-}
-
 void VcprojGenerator::outputVariables()
 {
 #if 0
index 30b149f..416e233 100644 (file)
@@ -63,7 +63,6 @@ class VcprojGenerator : public Win32MakefileGenerator
     bool writeMakefile(QTextStream &);
     bool writeProjectMakefile();
 
-    QString findTemplate(QString file);
     void init();
 
 public: