From d878e613e94430929817852a48589a25220cb42a Mon Sep 17 00:00:00 2001 From: "Christopher J. Brody" Date: Thu, 17 Oct 2019 13:58:28 -0400 Subject: [PATCH] remove internal propReplace function not needed --- lib/pbxProject.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/pbxProject.js b/lib/pbxProject.js index 0e0f8f9..5796ae0 100644 --- a/lib/pbxProject.js +++ b/lib/pbxProject.js @@ -1491,20 +1491,6 @@ pbxProject.prototype.addTarget = function(name, type, subfolder) { }; -// helper recursive prop search+replace -function propReplace(obj, prop, value) { - var o = {}; - for (var p in obj) { - if (o.hasOwnProperty.call(obj, p)) { - if (typeof obj[p] == 'object' && !Array.isArray(obj[p])) { - propReplace(obj[p], prop, value); - } else if (p == prop) { - obj[p] = value; - } - } - } -} - // helper object creation functions function pbxBuildFileObj(file) { var obj = Object.create(null);