The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Remove unused variables

These changes was commited to the Birdfont repository Tue, 22 Dec 2015 19:51:15 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Tue, 22 Dec 2015 19:51:15 +0000]

Updated Files

libbirdfont/GlyphRange.vala
libbirdfont/OpenFontFormat/HheaTable.vala
libbirdfont/OverViewItem.vala
libbirdfont/Renderer/Text.vala
--- a/libbirdfont/GlyphRange.vala +++ b/libbirdfont/GlyphRange.vala @@ -475,10 +475,9 @@ } public unichar get_character (uint32 index) { - int64 ti; - string chr; UniRange r; - unichar c; + unichar c; + string chr; UniRange? range; uint32 range_start_index;
--- a/libbirdfont/OpenFontFormat/HheaTable.vala +++ b/libbirdfont/OpenFontFormat/HheaTable.vala @@ -111,8 +111,7 @@ 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);
--- a/libbirdfont/OverViewItem.vala +++ b/libbirdfont/OverViewItem.vala @@ -153,26 +153,16 @@ } 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 ());
--- a/libbirdfont/Renderer/Text.vala +++ b/libbirdfont/Renderer/Text.vala @@ -168,7 +168,6 @@ } 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 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 @@ // 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);