Commit 9636511
Remove unused variables
Changed files (4)
modifiedlibbirdfont/GlyphRange.valamodifiedlibbirdfont/OpenFontFormat/HheaTable.valamodifiedlibbirdfont/OverViewItem.valamodifiedlibbirdfont/Renderer/Text.vala
Diff
@@ -475,10 +475,9 @@ public class GlyphRange { } public unichar get_character (uint32 index) {- int64 ti;- string chr; UniRange r;- unichar c; + unichar c;+ string chr; UniRange? range; uint32 range_start_index; @@ -111,8 +111,7 @@ public class HheaTable : OtfTable { FontData fd = new FontData (); Fixed version = 1 << 16; Font font = OpenFontFormatWriter.get_current_font ();- int upm, total_height;- + fd.add_fixed (version); // table version ascender = (int16) rint (font.top_limit * HeadTable.UNITS);@@ -153,26 +153,16 @@ public class OverViewItem : GLib.Object { } public void draw_background () {- Glyph g;- Font font;- double gx, gy;- double x1, x2, y1, y2; double scale_box;- double w, h;- double glyph_width, glyph_height; Surface s; Context c;- Color color = Color.black ();- - w = width;- h = height;- + scale_box = width / DEFAULT_WIDTH; s = Screen.create_background_surface ((int) width, (int) height - 20); c = new Context (s); - if (glyphs != null) { // FIXME: lock+ if (glyphs != null) { draw_glyph_from_font (); } else { c.scale (Screen.get_scale (), Screen.get_scale ());@@ -168,7 +168,6 @@ public class Text : Widget { } if (word_with_ligatures.glyph.size > 0) {- double none = 0; g = word_with_ligatures.glyph.get (0); if (g != null) { margin_left = ((!) g).get_left_side_bearing ();@@ -359,10 +358,6 @@ public class Text : Widget { } public void draw_at_baseline (Context cr, double px, double py, string cacheid = "") {- double x, y;- double ratio;- double cc_y;- if (cache == null) { cache = draw_on_cache_surface (cacheid); }@@ -394,8 +389,6 @@ public class Text : Widget { // double x = margin_left * ratio; double x = 0;- double py = cc_y;- double w = get_sidebearing_extent () * screen_scale + x + margin_left + 1; cache_surface = Screen.create_background_surface ((int) w, (int) h);