Remove more extraneous code specific to macOS bundle symlinking

This commit is contained in:
probonopd
2016-09-06 19:28:48 +02:00
parent b13b01d1be
commit c3482ed44d
-26
View File
@@ -125,25 +125,6 @@ bool copyFilePrintStatus(const QString &from, const QString &to)
}
}
bool linkFilePrintStatus(const QString &file, const QString &link)
{
if (QFile(link).exists()) {
if (QFile(link).symLinkTarget().isEmpty())
LogError() << link << "exists but it's a file.";
else
LogNormal() << "Symlink exists, skipping:" << link;
return false;
} else if (QFile::link(file, link)) {
LogNormal() << " symlink" << link;
LogNormal() << " points to" << file;
return true;
} else {
LogError() << "failed to symlink" << link;
LogError() << " to" << file;
return false;
}
}
LddInfo findDependencyInfo(const QString &binaryPath)
{
LddInfo info;
@@ -163,13 +144,6 @@ LddInfo findDependencyInfo(const QString &binaryPath)
static const QRegularExpression regexp(QStringLiteral(
"^.+ => (.+) \\("));
/*
static const QRegularExpression regexp(QStringLiteral(
"^\\t(.+) \\(compatibility version (\\d+\\.\\d+\\.\\d+), "
"current version (\\d+\\.\\d+\\.\\d+)\\)$"));
*/
QString output = ldd.readAllStandardOutput();
QStringList outputLines = output.split("\n", QString::SkipEmptyParts);
if (outputLines.size() < 2) {