From 9909d2959b33e3ec520dd6d1017b1c6c9c615e31 Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 26 Jan 2010 12:38:26 -0800 Subject: MINOR remove unused test function --- jstests/disk/repair.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'jstests/disk') diff --git a/jstests/disk/repair.js b/jstests/disk/repair.js index 200ffd53c12..6c8d81b3f9e 100644 --- a/jstests/disk/repair.js +++ b/jstests/disk/repair.js @@ -12,18 +12,6 @@ db = m.getDB( baseName ); db[ baseName ].save( {} ); db.runCommand( {repairDatabase:1, backupOriginalFiles:true} ); -escape = function( s ) { - ret = ""; - for( i in s ) { - if ( s[ i ] == "/" ) { - ret += "\/"; - } else { - ret += s[ i ]; - } - } - return ret; -} - files = listFiles( dbpath ); for( f in files ) { assert( ! new RegExp( "^" + dbpath + "backup_" ).test( files[ f ].name ), "backup dir in dbpath" ); -- cgit v1.2.1