[vala/parallel] emit 'using GLib' into fast vapi



commit ff2b10b7769c0afafbf0aa0137167f1d4b51c92d
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Aug 19 12:16:13 2010 -0400

    emit 'using GLib' into fast vapi
    
    turns out it is actually required.

 vala/valacodewriter.vala |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 08c8133..7916b1b 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -104,9 +104,7 @@ public class Vala.CodeWriter : CodeVisitor {
 		if (emit_using) {
 			var symbol_name = ns.namespace_symbol.name;
 
-			if (symbol_name != "GLib") {
-				write_string ("using %s;\n".printf (symbol_name));
-			}
+			write_string ("using %s;\n".printf (symbol_name));
 		}
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]