Skip to content

Commit 329bd0b

Browse files
committed
chore(addBuildPhase): remove unused variable buildPhaseSection
1 parent 81ddc4a commit 329bd0b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

lib/pbxProject.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,6 @@ PBXProject.prototype.addTargetDependency = function (target, dependencyTargets)
921921
* @returns {AddBuildPhaseResults} object containing the build phase & uuid
922922
*/
923923
PBXProject.prototype.addBuildPhase = function (filePathsArray, buildPhaseType, comment, target, optionsOrFolderType, subfolderPath) {
924-
let buildPhaseSection;
925924
const fileReferenceSection = this.pbxFileReferenceSection();
926925
const buildFileSection = this.pbxBuildFileSection();
927926
const buildPhaseUuid = this.generateUuid();
@@ -1013,11 +1012,6 @@ PBXProject.prototype.addBuildPhase = function (filePathsArray, buildPhaseType, c
10131012
buildPhase.files.push(pbxBuildPhaseObj(file));
10141013
}
10151014

1016-
if (buildPhaseSection) {
1017-
buildPhaseSection[buildPhaseUuid] = buildPhase;
1018-
buildPhaseSection[commentKey] = comment;
1019-
}
1020-
10211015
return { uuid: buildPhaseUuid, buildPhase };
10221016
};
10231017

0 commit comments

Comments
 (0)