From 85c35de54279d3ecdbdf7853748e731ff99d3e5c Mon Sep 17 00:00:00 2001 From: Amartya Parijat Date: Wed, 26 Jun 2024 15:18:08 +0200 Subject: [PATCH] Removal of region constructor with handle param This commit removes the constructor and the following method win32_new and hereby confirm that none of the clients consume them. contributes to #62 and #127 --- .../org/eclipse/swt/graphics/Region.java | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Region.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Region.java index 4cdea1cd0c8..636c311536e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Region.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Region.java @@ -89,17 +89,6 @@ public Region (Device device) { init(); } -/** - * Constructs a new region given a handle to the operating - * system resources that it should represent. - * - * @param handle the handle for the result - */ -Region(Device device, int handle) { - super(device); - this.handle = handle; -} - /** * Adds the given polygon to the collection of polygons * the receiver maintains to describe its area. @@ -630,24 +619,4 @@ public String toString () { return "Region {" + handle + "}"; } -/** - * Invokes platform specific functionality to allocate a new region. - *

- * IMPORTANT: This method is not part of the public - * API for Region. It is marked public only so that it - * can be shared within the packages provided by SWT. It is not - * available on all platforms, and should never be called from - * application code. - *

- * - * @param device the device on which to allocate the region - * @param handle the handle for the region - * @return a new region object containing the specified device and handle - * - * @noreference This method is not intended to be referenced by clients. - */ -public static Region win32_new(Device device, int handle) { - return new Region(device, handle); -} - }