[moserial] bump vala requirement to 0.12.0



commit cdb9d1a94f38ea4cebe420c43244f095bf83d45c
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Wed Aug 17 12:53:21 2011 -0400

    bump vala requirement to 0.12.0

 configure.ac                  |    1 +
 src/Profile.vala              |    4 ----
 src/SerialStreamRecorder.vala |    4 ----
 3 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 574f3f8..ad99548 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,6 +10,7 @@ AC_DISABLE_STATIC
 LT_INIT
 
 AC_PATH_PROG(VALAC, valac, valac)
+AM_PROG_VALAC([0.12.0])
 AC_SUBST(VALAC)
 
 AC_CONFIG_MACRO_DIR([m4])
diff --git a/src/Profile.vala b/src/Profile.vala
index 54e8f88..ef4f3f3 100644
--- a/src/Profile.vala
+++ b/src/Profile.vala
@@ -100,11 +100,7 @@ public class Profile : GLib.Object
 	                string data;
 	                fos = file.replace(null, false, GLib.FileCreateFlags.NONE, null);
 			data = keyFile.to_data(out s);
-#if VALA_0_12
 			fos.write(data.data, null);
-#else
-			fos.write(data.data, s, null);
-#endif
 		} catch (GLib.Error e) {
 			stdout.printf("profile.save error: %s\n", e.message);	
                         if (!default_profile) {
diff --git a/src/SerialStreamRecorder.vala b/src/SerialStreamRecorder.vala
index 0551cbe..6625d8d 100644
--- a/src/SerialStreamRecorder.vala
+++ b/src/SerialStreamRecorder.vala
@@ -46,11 +46,7 @@ public class moserial.SerialStreamRecorder {
 			uchar[] o = new uchar[1];
 			o[0]=data;
 			try {
-#if VALA_0_12
 	                        fos.write(o, null);
-#else
-        	                fos.write(o, 1, null);
-#endif
 			}
 			catch(GLib.Error e) {
 				stdout.printf(_("error: %s\n"), e.message);



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