Browse Source

Remove hxbit serialization from Samples (#990)

Note that the Network sample still uses hxbit.
Leonardo Jeanteur 4 years ago
parent
commit
0c82c15d32
2 changed files with 0 additions and 14 deletions
  1. 0 4
      samples/Generator.hx
  2. 0 10
      samples/SampleApp.hx

+ 0 - 4
samples/Generator.hx

@@ -77,8 +77,6 @@ class Generator {
 		try sys.FileSystem.createDirectory("build") catch( e : Dynamic ) {};
 		sys.io.File.saveContent("build/README.txt","This directory is automatically generated by samples/Script.hx using samples/templates");
 
-		var hasHxBit = Sys.command("haxelib path hxbit") == 0;
-
 		for( f in sys.FileSystem.readDirectory(".") ) {
 
 			if( sys.FileSystem.isDirectory(f) || !StringTools.endsWith(f,".hx") )
@@ -92,8 +90,6 @@ class Generator {
 			var params = [];
 			if( sys.FileSystem.exists(name+"_res") )
 				params.push("-D resourcesPath=../../"+name+"_res");
-			if( hasHxBit )
-				params.push("-lib hxbit");
 
 			var content = sys.io.File.getContent(f);
 			~/\/\/PARAM=(.*)/g.map(content,function(r) { params.push(StringTools.trim(r.matched(1))); return ""; });

+ 0 - 10
samples/SampleApp.hx

@@ -9,16 +9,6 @@ class SampleApp extends hxd.App {
 		fui.padding = 10;
 	}
 
-	#if hxbit
-	override function mainLoop() {
-		if( hxd.Key.isDown(hxd.Key.CTRL) && hxd.Key.isPressed("S".code) ) {
-			var bytes = s3d.serializeScene();
-			hxd.File.saveBytes("scene.hsd", bytes);
-		}
-		super.mainLoop();
-	}
-	#end
-
 	function getFont() {
 		return hxd.res.DefaultFont.get();
 	}