| Index: utils/testrunner/utils.dart
|
| ===================================================================
|
| --- utils/testrunner/utils.dart (revision 12980)
|
| +++ utils/testrunner/utils.dart (working copy)
|
| @@ -19,25 +19,6 @@
|
| return f.readAsLinesSync();
|
| }
|
|
|
| -/** Copy a file with path [sourceName] to destination [destName]. */
|
| -void copyFile(String sourceName, String destName) {
|
| - var sourceFile = new File(sourceName);
|
| - var destFile = new File(destName);
|
| - var istream = sourceFile.openInputStream();
|
| - var ostream = destFile.openOutputStream(FileMode.WRITE);
|
| - istream.pipe(ostream);
|
| - // TODO(gram) - make sure both streams are closed.
|
| - // I think they are but the docs are not clear on this point.
|
| -}
|
| -
|
| -/** Create a file [fileName] and populate it with [contents]. */
|
| -void createFile(String fileName, String contents) {
|
| - var file = new File(fileName);
|
| - var ostream = file.openOutputStream(FileMode.WRITE);
|
| - ostream.writeString(contents);
|
| - ostream.close();
|
| -}
|
| -
|
| /**
|
| * Given a file path [path], make it absolute if it is relative,
|
| * and return the result.
|
| @@ -95,17 +76,6 @@
|
| }
|
| }
|
|
|
| -/** Delete a file. */
|
| -bool deleteFile(String fname) {
|
| - var f = new File(fname);
|
| - try {
|
| - f.deleteSync();
|
| - } catch (e) {
|
| - return false;
|
| - }
|
| - return true;
|
| -}
|
| -
|
| /**
|
| * Get the directory that testrunner lives in; we need it to import
|
| * support files into the generated scripts.
|
|
|