From 43e9c6ebd9084462966dd8675381ca0ed13b3d39 Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Fri, 26 Jul 2013 03:13:59 +0200 Subject: [PATCH] refactor: --dup code --- vtm/src/org/oscim/theme/renderinstruction/Text.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/vtm/src/org/oscim/theme/renderinstruction/Text.java b/vtm/src/org/oscim/theme/renderinstruction/Text.java index c527d8d3..dfb4e62d 100644 --- a/vtm/src/org/oscim/theme/renderinstruction/Text.java +++ b/vtm/src/org/oscim/theme/renderinstruction/Text.java @@ -50,13 +50,7 @@ public final class Text extends RenderInstruction { public static Text createText(float fontSize, float strokeWidth, int fill, int outline, boolean billboard) { - Text t = new Text("", "", FontFamily.DEFAULT, FontStyle.NORMAL, - fontSize, fill, outline, strokeWidth, 0, billboard, null, Integer.MAX_VALUE); - - t.fontHeight = t.paint.getFontHeight(); - t.fontDescent = t.paint.getFontDescent(); - - return t; + return createText("", fontSize, strokeWidth, fill, outline, billboard); }