Skip to content

Commit 40b4fc6

Browse files
committed
Remove unused enableAutoScaling property of Device on Windows
The property "enableAutoScaling" has been introduced the Device class in the Windows implementation for HiDPI support year ago, but it has never been used. This removes the unused property.
1 parent 4a818d1 commit 40b4fc6

File tree

1 file changed

+0
-11
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics

1 file changed

+0
-11
lines changed

bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ public abstract class Device implements Drawable {
5656

5757
volatile boolean disposed;
5858

59-
/* Auto-Scaling*/
60-
boolean enableAutoScaling = true;
61-
6259
/*
6360
* TEMPORARY CODE. When a graphics object is
6461
* created and the device parameter is null,
@@ -939,14 +936,6 @@ public void setWarnings (boolean warnings) {
939936
checkDevice ();
940937
}
941938

942-
boolean getEnableAutoScaling() {
943-
return enableAutoScaling;
944-
}
945-
946-
void setEnableAutoScaling(boolean value) {
947-
enableAutoScaling = value;
948-
}
949-
950939
/**
951940
* Gets the scaling factor from the device and calculates the zoom level.
952941
* @return zoom in percentage

0 commit comments

Comments
 (0)