From 291b86b899ca65ef947b5ce16ef86e7a43a6458a Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 27 Nov 2017 16:45:19 +0100 Subject: [PATCH] #38414: Remove some more unused code --- src/vs/base/browser/dom.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/vs/base/browser/dom.ts b/src/vs/base/browser/dom.ts index d3a0f38d8c83e..8bb4ed5e33162 100644 --- a/src/vs/base/browser/dom.ts +++ b/src/vs/base/browser/dom.ts @@ -477,22 +477,13 @@ const sizeUtils = { getBorderTopWidth: function (element: HTMLElement): number { return getDimension(element, 'border-top-width', 'borderTopWidth'); }, - getBorderRightWidth: function (element: HTMLElement): number { - return getDimension(element, 'border-right-width', 'borderRightWidth'); - }, getBorderBottomWidth: function (element: HTMLElement): number { return getDimension(element, 'border-bottom-width', 'borderBottomWidth'); }, - getPaddingLeft: function (element: HTMLElement): number { - return getDimension(element, 'padding-left', 'paddingLeft'); - }, getPaddingTop: function (element: HTMLElement): number { return getDimension(element, 'padding-top', 'paddingTop'); }, - getPaddingRight: function (element: HTMLElement): number { - return getDimension(element, 'padding-right', 'paddingRight'); - }, getPaddingBottom: function (element: HTMLElement): number { return getDimension(element, 'padding-bottom', 'paddingBottom'); }, @@ -588,14 +579,6 @@ export const StandardWindow: IStandardWindow = new class { } }; -// Adapted from WinJS -// Gets the width of the content of the specified element. The content width does not include borders or padding. -export function getContentWidth(element: HTMLElement): number { - let border = sizeUtils.getBorderLeftWidth(element) + sizeUtils.getBorderRightWidth(element); - let padding = sizeUtils.getPaddingLeft(element) + sizeUtils.getPaddingRight(element); - return element.offsetWidth - border - padding; -} - // Adapted from WinJS // Gets the width of the element, including margins. export function getTotalWidth(element: HTMLElement): number {