summaryrefslogtreecommitdiff
path: root/jstests/disk
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-01-26 12:38:26 -0800
committerAaron <aaron@10gen.com>2010-01-26 12:38:26 -0800
commit9909d2959b33e3ec520dd6d1017b1c6c9c615e31 (patch)
tree1073917df58eee68e215484012a9c22ff7899674 /jstests/disk
parentb151a6f5b16b3107d544e502572123925c239024 (diff)
downloadmongo-9909d2959b33e3ec520dd6d1017b1c6c9c615e31.tar.gz
MINOR remove unused test function
Diffstat (limited to 'jstests/disk')
-rw-r--r--jstests/disk/repair.js12
1 files changed, 0 insertions, 12 deletions
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" );