Skip to content

Commit 6d1e1b3

Browse files
committed
Remove unused constructors in Font
1 parent c6c4654 commit 6d1e1b3

File tree

3 files changed

+0
-20
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT

3 files changed

+0
-20
lines changed

bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Font.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,6 @@ public Font(Device device, String name, int height, int style) {
188188
}
189189
}
190190

191-
/*public*/ Font(Device device, String name, float height, int style) {
192-
super(device);
193-
init(name, height, style, null);
194-
init();
195-
}
196-
197191
void addTraits(NSMutableAttributedString attrStr, NSRange range) {
198192
if ((extraTraits & OS.NSBoldFontMask) != 0) {
199193
attrStr.addAttribute(OS.NSStrokeWidthAttributeName, NSNumber.numberWithDouble(SYNTHETIC_BOLD), range);

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Font.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,6 @@ public Font(Device device, String name, int height, int style) {
147147
init();
148148
}
149149

150-
/*public*/ Font(Device device, String name, float height, int style) {
151-
super(device);
152-
init(name, height, style, null);
153-
init();
154-
}
155-
156150
@Override
157151
void destroy() {
158152
OS.pango_font_description_free(handle);

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,6 @@ public Font(Device device, String name, int height, int style) {
189189
init();
190190
}
191191

192-
/*public*/ Font(Device device, String name, float height, int style) {
193-
super(device);
194-
if (name == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
195-
this.zoom = DPIUtil.getNativeDeviceZoom();
196-
this.fontData = new FontData (name, height, style);
197-
this.fontHeight = height;
198-
init();
199-
}
200192
@Override
201193
void destroy() {
202194
OS.DeleteObject(handle);

0 commit comments

Comments
 (0)