Clone in a terminal:
Commit 9636511
Johan Mattsson - 2015-12-22T19:51:15+00:00
963651143bda3ec28da58658da2dfef6137cdb32johan.mattsson.m@gmail.com

Remove unused variables

Changed files (4)

Diff

diff --git a/libbirdfont/GlyphRange.vala b/libbirdfont/GlyphRange.valaindex 6bb165c..3c8448f 100644--- a/libbirdfont/GlyphRange.vala+++ b/libbirdfont/GlyphRange.vala@@ -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; 		diff --git a/libbirdfont/OpenFontFormat/HheaTable.vala b/libbirdfont/OpenFontFormat/HheaTable.valaindex c4e8410..9fba145 100644--- a/libbirdfont/OpenFontFormat/HheaTable.vala+++ b/libbirdfont/OpenFontFormat/HheaTable.vala@@ -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);diff --git a/libbirdfont/OverViewItem.vala b/libbirdfont/OverViewItem.valaindex 15e318d..36db439 100644--- a/libbirdfont/OverViewItem.vala+++ b/libbirdfont/OverViewItem.vala@@ -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 ());diff --git a/libbirdfont/Renderer/Text.vala b/libbirdfont/Renderer/Text.valaindex a5d368a..ae9c5be 100644--- a/libbirdfont/Renderer/Text.vala+++ b/libbirdfont/Renderer/Text.vala@@ -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);

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112