[Gridflow-cvs] [svn] commit: r5540 - /trunk/src/formats.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Apr 26 18:49:26 EDT 2010


Author: matju
Date: Mon Apr 26 18:49:24 2010
New Revision: 5540

Log:
method 'type' is useless (n'est-ce pas ?)

Modified:
    trunk/src/formats.cxx

Modified: trunk/src/formats.cxx
==============================================================================
--- trunk/src/formats.cxx (original)
+++ trunk/src/formats.cxx Mon Apr 26 18:49:24 2010
@@ -172,7 +172,6 @@
 	\decl 0 bang ();
 	\decl 0 headerless (...);
 	\decl 0 headerful ();
-	\decl 0 type (NumberTypeE nt);
 	\decl 0 seek_byte (int64 bytepos);
 	~FormatGrid() {
 		//@stream.close if @stream
@@ -260,17 +259,6 @@
 	headerless_dim = new Dim(argc,v);
 }
 \def 0 headerful () {headerless_dim = 0;}
-\def 0 type (NumberTypeE nt) {
-	//!@#$ bug: should not be able to modify this _during_ a transfer
-	switch (nt) {
-	case uint8_e: head.type= 8; break;
-	case int16_e: head.type=16; break;
-	case int32_e: head.type=32; break;
-	default: RAISE("unsupported type");
-	}
-	this->nt = nt;
-}
-
 \def 0 seek_byte (int64 pos) {fseek(f,pos,SEEK_SET);}
 
 //\def void raw_open_gzip_in(string filename) {



More information about the Gridflow-cvs mailing list