Index: tools/testing/dart/test_progress.dart |
diff --git a/tools/testing/dart/test_progress.dart b/tools/testing/dart/test_progress.dart |
index cadbceb4ff6ebfca5e35a69617a5c030a9767514..58a932a52c3a0c028440d5535b0422894a01db33 100644 |
--- a/tools/testing/dart/test_progress.dart |
+++ b/tools/testing/dart/test_progress.dart |
@@ -4,7 +4,6 @@ |
library test_progress; |
-import "dart:async"; |
import "dart:io"; |
import "dart:io" as io; |
import "dart:convert" show JSON; |
@@ -502,45 +501,6 @@ class SkippedCompilationsPrinter extends EventListener { |
} |
} |
-class LeftOverTempDirPrinter extends EventListener { |
- final MIN_NUMBER_OF_TEMP_DIRS = 50; |
- |
- static RegExp _getTemporaryDirectoryRegexp() { |
- // These are the patterns of temporary directory names created by |
- // 'Directory.systemTemp.createTemp()' on linux/macos and windows. |
- if (['macos', 'linux'].contains(Platform.operatingSystem)) { |
- return new RegExp(r'^temp_dir1_......$'); |
- } else { |
- return new RegExp(r'tempdir-........-....-....-....-............$'); |
- } |
- } |
- |
- static Stream<FileSystemEntity> getLeftOverTemporaryDirectories() { |
- var regExp = _getTemporaryDirectoryRegexp(); |
- return Directory.systemTemp.list().where((FileSystemEntity fse) { |
- if (fse is Directory) { |
- if (regExp.hasMatch(new Path(fse.path).filename)) { |
- return true; |
- } |
- } |
- return false; |
- }); |
- } |
- |
- void allDone() { |
- getLeftOverTemporaryDirectories().length.then((int count) { |
- if (count > MIN_NUMBER_OF_TEMP_DIRS) { |
- DebugLogger.warning("There are ${count} directories " |
- "in the system tempdir " |
- "('${Directory.systemTemp.path}')! " |
- "Maybe left over directories?\n"); |
- } |
- }).catchError((error) { |
- DebugLogger.warning("Could not list temp directories, got: $error"); |
- }); |
- } |
-} |
- |
class LineProgressIndicator extends EventListener { |
void done(TestCase test) { |
var status = 'pass'; |