Skip to content

Commit 97dc707

Browse files
committed
debt - remove commented out stuff
1 parent d167d92 commit 97dc707

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

src/vs/base/common/objects.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -82,40 +82,6 @@ function _cloneAndChange(obj: any, changer: (orig: any) => any, encounteredObjec
8282
return obj;
8383
}
8484

85-
// DON'T USE THESE FUNCTION UNLESS YOU KNOW HOW CHROME
86-
// WORKS... WE HAVE SEEN VERY WEIRD BEHAVIOUR WITH CHROME >= 37
87-
88-
///**
89-
// * Recursively call Object.freeze on object and any properties that are objects.
90-
// */
91-
//export function deepFreeze(obj:any):void {
92-
// Object.freeze(obj);
93-
// Object.keys(obj).forEach((key) => {
94-
// if(!(typeof obj[key] === 'object') || Object.isFrozen(obj[key])) {
95-
// return;
96-
// }
97-
//
98-
// deepFreeze(obj[key]);
99-
// });
100-
// if(!Object.isFrozen(obj)) {
101-
// console.log('too warm');
102-
// }
103-
//}
104-
//
105-
//export function deepSeal(obj:any):void {
106-
// Object.seal(obj);
107-
// Object.keys(obj).forEach((key) => {
108-
// if(!(typeof obj[key] === 'object') || Object.isSealed(obj[key])) {
109-
// return;
110-
// }
111-
//
112-
// deepSeal(obj[key]);
113-
// });
114-
// if(!Object.isSealed(obj)) {
115-
// console.log('NOT sealed');
116-
// }
117-
//}
118-
11985
/**
12086
* Copies all properties of source into destination. The optional parameter "overwrite" allows to control
12187
* if existing properties on the destination should be overwritten or not. Defaults to true (overwrite).

0 commit comments

Comments
 (0)