From 57415669e6cc09435fe03c4a61f530ae09b4ec55 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Tue, 2 Jul 2019 14:40:22 -0700 Subject: [PATCH] Remove unused function --- src/vs/base/common/parsers.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/vs/base/common/parsers.ts b/src/vs/base/common/parsers.ts index 748abd4fd47..125b965f5e4 100644 --- a/src/vs/base/common/parsers.ts +++ b/src/vs/base/common/parsers.ts @@ -3,8 +3,6 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import * as Types from 'vs/base/common/types'; - export const enum ValidationState { OK = 0, Info = 1, @@ -78,25 +76,4 @@ export abstract class Parser { public fatal(message: string): void { this._problemReporter.fatal(message); } - - protected static merge(destination: T, source: T, overwrite: boolean): void { - Object.keys(source).forEach((key: string) => { - const destValue = destination[key]; - const sourceValue = source[key]; - if (Types.isUndefined(sourceValue)) { - return; - } - if (Types.isUndefined(destValue)) { - destination[key] = sourceValue; - } else { - if (overwrite) { - if (Types.isObject(destValue) && Types.isObject(sourceValue)) { - this.merge(destValue, sourceValue, overwrite); - } else { - destination[key] = sourceValue; - } - } - } - }); - } } \ No newline at end of file -- GitLab