From 531b721442124b7fdc020a9f3695a3759c431f76 Mon Sep 17 00:00:00 2001 From: probonopd Date: Mon, 5 Sep 2016 22:09:47 +0200 Subject: [PATCH] Remove more macOS specific code --- shared/shared.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/shared/shared.cpp b/shared/shared.cpp index 64fa09e..48c62fb 100644 --- a/shared/shared.cpp +++ b/shared/shared.cpp @@ -144,19 +144,6 @@ bool linkFilePrintStatus(const QString &file, const QString &link) } } -void patch_debugInInfoPlist(const QString &infoPlistPath) -{ - // Older versions of qmake may have the "_debug" binary as - // the value for CFBundleExecutable. Remove it. - QFile infoPlist(infoPlistPath); - infoPlist.open(QIODevice::ReadOnly); - QByteArray contents = infoPlist.readAll(); - infoPlist.close(); - infoPlist.open(QIODevice::WriteOnly | QIODevice::Truncate); - contents.replace("_debug", ""); // surely there are no legit uses of "_debug" in an Info.plist - infoPlist.write(contents); -} - OtoolInfo findDependencyInfo(const QString &binaryPath) { OtoolInfo info;