removed some dead code
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 4 Feb 2003 19:45:45 +0000 (19:45 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 4 Feb 2003 19:45:45 +0000 (19:45 +0000)
comedi_calibrate/save_cal.c

index fbd79054dd6119a73925178d04328a7759847656..edd8dd2d631e6d5b443e6b5445fc4e3b1702ad30 100644 (file)
@@ -29,19 +29,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 #include "calib.h"
 
-int get_inode( comedi_t *dev, ino_t *inode )
-{
-       struct stat file_stats;
-       int retval;
-
-       retval = fstat( comedi_fileno( dev ), &file_stats );
-       if( retval < 0 )
-               return -1;
-
-       *inode = file_stats.st_ino;
-       return 0;
-}
-
 void write_caldac( FILE *file, caldac_t caldac )
 {
        static const char *indent = "\t\t\t\t";
@@ -98,13 +85,8 @@ void write_calibration_setting( FILE *file, saved_calibration_t setting )
 int write_calibration_perl_hash( FILE *file, comedi_t *dev,
        saved_calibration_t settings[], unsigned int num_settings )
 {
-       ino_t inode;
-       int retval;
        int i;
 
-       retval = get_inode( dev, &inode );
-       if( retval < 0 ) return retval;
-
        fprintf( file, "{\n" );
        fprintf( file, "\tboard_name => \"%s\",\n", comedi_get_board_name( dev ) );
        fprintf( file, "\tcalibrations => [\n" );