Skip to content

Commit

Permalink
Removal of region constructor with handle param
Browse files Browse the repository at this point in the history
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
  • Loading branch information
amartya4256 committed Jun 26, 2024
1 parent bd223bb commit 85c35de
Showing 1 changed file with 0 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -630,24 +619,4 @@ public String toString () {
return "Region {" + handle + "}";
}

/**
* Invokes platform specific functionality to allocate a new region.
* <p>
* <b>IMPORTANT:</b> This method is <em>not</em> part of the public
* API for <code>Region</code>. 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.
* </p>
*
* @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);
}

}

0 comments on commit 85c35de

Please sign in to comment.