Clone in a terminal:
Commit fb419e3
Johan Mattsson - 2019-10-09T17:45:06+00:00
fb419e3a3dfb07a6802c1c3f423ec75b0106180bjohan.mattsson.m@gmail.com

Drop Drawing class

Changed files (2)

Diff

diff --git a/libbirdfont/BirdFont.vala b/libbirdfont/BirdFont.valaindex c520246..3b2851b 100644--- a/libbirdfont/BirdFont.vala+++ b/libbirdfont/BirdFont.vala@@ -91,19 +91,10 @@ public class BirdFont { 	public static Font current_font; 	public static GlyphCollection current_glyph_collection; -	public static Drawing? drawing = null;- 	public static string? settings_subdirectory = null; 	public static string? sandbox_directory = null;  	public BirdFont () {-		set_defaul_drawing_callbacks ();-	}--	void set_defaul_drawing_callbacks () {-		if (drawing == null) {-			drawing = new Drawing ();-		} 	}  	/**@@ -545,8 +536,4 @@ public static File get_child (File folder, string file_name) { 	return File.new_for_path (f + n); } -public static void set_drawing_callbacks (Drawing callbacks) {-	BirdFont.drawing = callbacks;-}- }diff --git a/libbirdfont/Renderer/Drawing.vala b/libbirdfont/Renderer/Drawing.valadeleted file mode 100644index 2de5049..0000000--- a/libbirdfont/Renderer/Drawing.vala+++ /dev/null@@ -1,50 +0,0 @@-/*-	Copyright (C) 2014 Johan Mattsson--	This library is free software; you can redistribute it and/or modify -	it under the terms of the GNU Lesser General Public License as -	published by the Free Software Foundation; either version 3 of the -	License, or (at your option) any later version.--	This library is distributed in the hope that it will be useful, but -	WITHOUT ANY WARRANTY; without even the implied warranty of -	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -	Lesser General Public License for more details.-*/--namespace BirdFont {--/** Interface for creating drawing callbacks. */-[Compact]-[CCode (ref_function = "bird_font_drawing_ref", unref_function = "bird_font_drawing_unref")]-public class Drawing {-	-	public int iterator_refcount = 1;-		-	public Drawing () {-	}--	public void new_path (double x, double y) {-	}--	public void curve_to (double xb, double yb, double xc, double yc, double xd, double yd) {-	}--	public void close_path (double x, double y) {-	}--	public unowned Drawing @ref () {-		iterator_refcount++;-		return this;-	}-	-	public void unref () {-		if (--iterator_refcount == 0) {-			this.free ();-		}-	}-	-	private extern void free ();-}--}

Contact

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