Skip to content

Commit bd85d9a

Browse files
author
Chris Brody
authored
remove internal propReplace function not needed (#69)
1 parent 4c5c630 commit bd85d9a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/pbxProject.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,20 +1491,6 @@ pbxProject.prototype.addTarget = function(name, type, subfolder) {
14911491

14921492
};
14931493

1494-
// helper recursive prop search+replace
1495-
function propReplace(obj, prop, value) {
1496-
var o = {};
1497-
for (var p in obj) {
1498-
if (o.hasOwnProperty.call(obj, p)) {
1499-
if (typeof obj[p] == 'object' && !Array.isArray(obj[p])) {
1500-
propReplace(obj[p], prop, value);
1501-
} else if (p == prop) {
1502-
obj[p] = value;
1503-
}
1504-
}
1505-
}
1506-
}
1507-
15081494
// helper object creation functions
15091495
function pbxBuildFileObj(file) {
15101496
var obj = Object.create(null);

0 commit comments

Comments
 (0)