Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: utils/archive/options.dart

Issue 10824210: Fix the archive code so that it compiles in a stricter mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Small fixes Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/archive/messaging.c ('k') | utils/archive/read_request.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/archive/options.dart
diff --git a/utils/archive/options.dart b/utils/archive/options.dart
index 102b9f5a8c2867ad29912606149acb096c24e0be..cfdddb5a5a0184b6d87cafc7bb744bb8b46d556e 100644
--- a/utils/archive/options.dart
+++ b/utils/archive/options.dart
@@ -47,18 +47,6 @@ class ArchiveOptions {
return _options[name];
}
- /**
- * Serializes the options to the format understood by libarchive.
- *
- * Meant for internal use.
- */
- String serialize() {
- return Strings.join(_options.getValues().map((option) {
- if (option.value is Boolean) {
- return '${option.value ? '!' : ''}${option.name}';
- } else {
- return '${option.name}=${option.value}';
- }
- }), ',');
- }
+ /** Gets all options. */
+ List<ArchiveOption> get all() => _options.getValues();
}
« no previous file with comments | « utils/archive/messaging.c ('k') | utils/archive/read_request.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698