prune dead fixFilename() function
Change-Id: I84bafecccec286094701874b2780b45d08797524 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
parent
77980b78ab
commit
5932fc4ab8
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user