Index: tools/servicec/lib/src/emitter.dart |
diff --git a/tools/servicec/lib/src/emitter.dart b/tools/servicec/lib/src/emitter.dart |
deleted file mode 100644 |
index 3492a411959e5eff4692ad74fcb3db65a4702782..0000000000000000000000000000000000000000 |
--- a/tools/servicec/lib/src/emitter.dart |
+++ /dev/null |
@@ -1,26 +0,0 @@ |
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
-library old_servicec.emitter; |
- |
-import 'dart:io'; |
- |
-import 'package:path/path.dart' show basenameWithoutExtension, join; |
- |
-void writeToFile(String outputDirectory, |
- String path, |
- String contents, |
- {String extension}) { |
- // Create output directory if it doesn't already exist. |
- new Directory(outputDirectory).createSync(recursive: true); |
- // Write contents of the file. |
- String fileName = path; |
- if (extension != null) { |
- String base = basenameWithoutExtension(path); |
- fileName = '$base.$extension'; |
- } |
- String filePath = join(outputDirectory, fileName); |
- new File(filePath).writeAsStringSync(contents); |
-} |
- |