Skip to content

Commit

Permalink
remove internal propReplace function not needed (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Brody authored Oct 18, 2019
1 parent 4c5c630 commit bd85d9a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/pbxProject.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bd85d9a

Please sign in to comment.