From 28c57d548aa320fd3a04f143f54770690c8d3c8f Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 4 Feb 2003 19:45:45 +0000 Subject: [PATCH] removed some dead code --- comedi_calibrate/save_cal.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/comedi_calibrate/save_cal.c b/comedi_calibrate/save_cal.c index fbd7905..edd8dd2 100644 --- a/comedi_calibrate/save_cal.c +++ b/comedi_calibrate/save_cal.c @@ -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" );