2
0
Nicolas Cannasse 19 жил өмнө
parent
commit
eb327f1a90

+ 0 - 4
std/neko/io/FileInput.hx

@@ -63,10 +63,6 @@ class FileInput extends Input {
 		file_close(__f);
 	}
 
-	public override function skip( nbytes ) {
-		try	seek(nbytes,SeekCur) catch( e : Dynamic ) throw Error.Eof;
-	}
-
 	public function seek( p : Int, pos : FileSeek ) {
 		file_seek(__f,p,switch( pos ) { case SeekBegin: 0; case SeekCur: 1; case SeekEnd: 2; });
 	}

+ 0 - 5
std/neko/io/Input.hx

@@ -49,7 +49,6 @@ class Input {
 	public function close() {
 		readBytes = function(_,_,_) { return throw Error.Closed; };
 		readChar = function() { return throw Error.Closed; };
-		skip = function(_) { throw Error.Closed; };
 		close = function() { };
 	}
 
@@ -101,10 +100,6 @@ class Input {
 		return s;
 	}
 
-	public function skip( nbytes : Int ) {
-		read(nbytes);
-	}
-
 	public function readFloat() {
 		return _float_of_bytes(untyped read(4).__s,false);
 	}

+ 0 - 9
std/neko/io/StringInput.hx

@@ -58,13 +58,4 @@ class StringInput extends Input {
 		return blen;
 	}
 
-	public override function skip( nbytes : Int ) {
-		pos += nbytes;
-		len -= nbytes;
-		if( len < 0 ) {
-			len = 0;
-			throw Error.Eof;
-		}
-	}
-
 }

+ 1 - 1
std/neko/zip/File.hx

@@ -70,7 +70,7 @@ class File {
 			var fnamelen = data.readInt16();
 			var elen = data.readInt16();
 			var fname = data.read(fnamelen);
-			data.skip(elen);
+			var ename = data.read(elen);
 			l.add({
 				fileName : fname,
 				fileSize : usize,