tools: removed unused members, tiny cleanup

R=ricow@google.com

Review URL: https://codereview.chromium.org//770633003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42106 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
kevmoo@google.com
2014-12-04 13:56:14 +00:00
parent 9fad07f46e
commit 61b056964a
5 changed files with 5 additions and 28 deletions
-1
View File
@@ -298,7 +298,6 @@ void testConfigurations(List<Map> configurations) {
eventListener,
allTestsFinished,
verbose,
listTests,
recordingPath,
recordingOutputPath);
}
-1
View File
@@ -283,7 +283,6 @@ Future doMultitest(Path filePath, String outputDir, Path suiteDir,
Path CreateMultitestDirectory(String outputDir, Path suiteDir) {
final String generatedTestDirectory = 'generated_tests';
Directory generatedTestDir = new Directory('$outputDir/generated_tests');
if (!new Directory(outputDir).existsSync()) {
new Directory(outputDir).createSync();
-1
View File
@@ -341,7 +341,6 @@ class TimingPrinter extends EventListener {
var commandOutput = outputs[i];
var command = commandOutput.command;
var testCases = _command2testCases[command];
var duration = commandOutput.time;
var testCasesDescription = testCases.map((testCase) {
return "${testCase.configurationString}/${testCase.displayName}";
-5
View File
@@ -394,7 +394,6 @@ class CleanDirectoryCopyCommand extends ScriptCommand {
Future<ScriptCommandOutputImpl> run() {
var watch = new Stopwatch()..start();
var source = new io.Directory(_sourceDirectory);
var destination = new io.Directory(_destinationDirectory);
return destination.exists().then((bool exists) {
@@ -1453,8 +1452,6 @@ class AnalysisCommandOutputImpl extends CommandOutputImpl {
}
void parseAnalyzerOutput(List<String> outErrors, List<String> outWarnings) {
AnalysisCommand analysisCommand = command;
// Parse a line delimited by the | character using \ as an escape charager
// like: FOO|BAR|FOO\|BAR|FOO\\BAZ as 4 fields: FOO BAR FOO|BAR FOO\BAZ
List<String> splitMachineError(String line) {
@@ -2770,7 +2767,6 @@ class TestCaseCompleter {
class ProcessQueue {
Map _globalConfiguration;
bool _listTests;
Function _allDone;
final dgraph.Graph _graph = new dgraph.Graph();
List<EventListener> _eventListener;
@@ -2783,7 +2779,6 @@ class ProcessQueue {
this._eventListener,
this._allDone,
[bool verbose = false,
this._listTests = false,
String recordingOutputFile,
String recordedInputFile]) {
void setupForListing(TestCaseEnqueuer testCaseEnqueuer) {
+5 -20
View File
@@ -362,7 +362,6 @@ abstract class TestSuite {
}
String createPubspecCheckoutDirectory(Path directoryOfPubspecYaml) {
var relativeDir = directoryOfPubspecYaml.relativeTo(TestUtils.dartDir);
var sdk = configuration['use_sdk'] ? '-sdk' : '';
var pkg = configuration['use_public_packages']
? 'public_packages' : 'repo_packages';
@@ -371,7 +370,6 @@ abstract class TestSuite {
}
String createPubPackageBuildsDirectory(Path directoryOfPubspecYaml) {
var relativeDir = directoryOfPubspecYaml.relativeTo(TestUtils.dartDir);
var pkg = configuration['use_public_packages']
? 'public_packages' : 'repo_packages';
return createGeneratedTestDirectoryHelper(
@@ -776,14 +774,12 @@ class StandardTestSuite extends TestSuite {
}
void enqueueDirectory(Directory dir, FutureGroup group) {
var listCompleter = new Completer();
group.add(listCompleter.future);
var lister = dir.list(recursive: listRecursively)
.listen((FileSystemEntity fse) {
if (fse is File) enqueueFile(fse.path, group);
},
onDone: listCompleter.complete);
.where((fse) => fse is File)
.forEach((File f) {
enqueueFile(f.path, group);
});
group.add(lister);
}
void enqueueFile(String filename, FutureGroup group) {
@@ -1127,7 +1123,6 @@ class StandardTestSuite extends TestSuite {
File file = new File(dartWrapperFilename);
RandomAccessFile dartWrapper = file.openSync(mode: FileMode.WRITE);
var usePackageImport = localDartLibraryFilename.segments().contains("pkg");
var libraryPathComponent = _createUrlPathFromFile(localDartLibraryFilename);
var generatedSource = dartTestWrapper(libraryPathComponent);
dartWrapper.writeStringSync(generatedSource);
@@ -1200,8 +1195,6 @@ class StandardTestSuite extends TestSuite {
Path dir = filePath.directoryPath;
String nameNoExt = filePath.filenameWithoutExtension;
Path pngPath = dir.append('$nameNoExt.png');
Path txtPath = dir.append('$nameNoExt.txt');
String customHtmlPath = dir.append('$nameNoExt.html').toNativePath();
File customHtml = new File(customHtmlPath);
@@ -1323,8 +1316,6 @@ class StandardTestSuite extends TestSuite {
var fullHtmlPath =
_getUriForBrowserTest(htmlPath_subtest, subtestName).toString();
List<String> args = <String>[];
if (runtime == "drt") {
var dartFlags = [];
var contentShellOptions = [];
@@ -1456,14 +1447,11 @@ class StandardTestSuite extends TestSuite {
Command _compileCommand(String inputFile, String outputFile,
String compiler, String dir, optionsFromFile) {
assert (['dart2js', 'dart2dart'].contains(compiler));
String executable;
List<String> args;
if (compilerPath.endsWith('.dart')) {
// Run the compiler script via the Dart VM.
executable = dartVmBinaryFileName;
args = [compilerPath];
} else {
executable = compilerPath;
args = [];
}
args.addAll(TestUtils.standardOptions(configuration));
@@ -1912,7 +1900,6 @@ class AnalyzeLibraryTestSuite extends DartcCompilationTestSuite {
}
bool isTestFile(String filename) {
var sep = Platform.pathSeparator;
// NOTE: We exclude tests and patch files for now.
return filename.endsWith(".dart") &&
!filename.endsWith("_test.dart") &&
@@ -2016,8 +2003,6 @@ class PkgBuildTestSuite extends TestSuite {
}
doTest = onTest;
Map<String, String> _localPackageDirectories;
Map<String, String> _localSampleDirectories;
List<String> statusFiles = [
TestUtils.dartDir.join(new Path(statusFilePath)).toNativePath()];
ReadTestExpectations(statusFiles, configuration).then((expectations) {