mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-14 12:11:43 +01:00
debt - remove commented out stuff
This commit is contained in:
@@ -82,40 +82,6 @@ function _cloneAndChange(obj: any, changer: (orig: any) => any, encounteredObjec
|
||||
return obj;
|
||||
}
|
||||
|
||||
// DON'T USE THESE FUNCTION UNLESS YOU KNOW HOW CHROME
|
||||
// WORKS... WE HAVE SEEN VERY WEIRD BEHAVIOUR WITH CHROME >= 37
|
||||
|
||||
///**
|
||||
// * Recursively call Object.freeze on object and any properties that are objects.
|
||||
// */
|
||||
//export function deepFreeze(obj:any):void {
|
||||
// Object.freeze(obj);
|
||||
// Object.keys(obj).forEach((key) => {
|
||||
// if(!(typeof obj[key] === 'object') || Object.isFrozen(obj[key])) {
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// deepFreeze(obj[key]);
|
||||
// });
|
||||
// if(!Object.isFrozen(obj)) {
|
||||
// console.log('too warm');
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//export function deepSeal(obj:any):void {
|
||||
// Object.seal(obj);
|
||||
// Object.keys(obj).forEach((key) => {
|
||||
// if(!(typeof obj[key] === 'object') || Object.isSealed(obj[key])) {
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// deepSeal(obj[key]);
|
||||
// });
|
||||
// if(!Object.isSealed(obj)) {
|
||||
// console.log('NOT sealed');
|
||||
// }
|
||||
//}
|
||||
|
||||
/**
|
||||
* Copies all properties of source into destination. The optional parameter "overwrite" allows to control
|
||||
* if existing properties on the destination should be overwritten or not. Defaults to true (overwrite).
|
||||
|
||||
Reference in New Issue
Block a user