src/Palete/ValaSource.vala
authorAlan Knowles <alan@roojs.com>
Sun, 24 May 2015 03:29:41 +0000 (11:29 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 24 May 2015 03:29:41 +0000 (11:29 +0800)
src/Palete/ValaSource.vala

index 00d604e..a942a3c 100644 (file)
@@ -195,40 +195,7 @@ namespace Palete {
                         
                }
                
-               
-               public void checkFileSpawn(JsRender.JsRender file )
-               {
-                       // race condition..
-                       if (this.compiler != null) { 
-                               return;
-                       }
-                       
-                       this.file = file;
-                       this.line_offset = 0;
-                         
-                       string[] args = {};
-                       args += BuilderApplication._self;
-                       args += "--project";
-                       args += this.file.project.fn;
-                       args += "--target";
-                       args += this.file.build_module;
-                        
-                        
-                       
-                       this.compiler = new Spawn("/tmp", args);
-                       this.compiler.complete.connect(spawnResult);
-                       
-                       try {
-                               this.compiler.run(); 
-                       } catch (GLib.SpawnError e) {
-                               var ret = new Json.Object();
-                               ret.set_boolean_member("success", false);
-                               ret.set_string_member("message", e.message);
-                           this.compiled(ret);
-                           this.compiler = null;
-                       }
-                        
-               }
+                
                public void checkFilePlainSpawn(Project.Project project, string filename, string contents )
                {
                        // race condition..
@@ -236,6 +203,7 @@ namespace Palete {
                                return;
                        }
                        
+                       
                        FileIOStream iostream;
                        var tmpfile = File.new_tmp ("test-XXXXXX.vala", out iostream);
                        tmpfile.ref();