From f75e71d95c3f2170e2b502c74b020fd1546b2386 Mon Sep 17 00:00:00 2001 From: "ajohnsen@google.com" Date: Wed, 3 Sep 2014 12:35:50 +0000 Subject: [PATCH] Remove unused string interpolations. BUG= R=lrn@google.com Review URL: https://codereview.chromium.org//532233002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39802 260f80e4-7a28-3924-810f-c04153c831b5 --- runtime/lib/growable_array.dart | 6 +++--- sdk/lib/io/http_headers.dart | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart index ade7ec19e4c..fd3426ccd95 100644 --- a/runtime/lib/growable_array.dart +++ b/runtime/lib/growable_array.dart @@ -262,13 +262,13 @@ class _GrowableList implements List { StringBuffer buffer = new StringBuffer(); if (separator.isEmpty) { for (int i = 0; i < this.length; i++) { - buffer.write("${this[i]}"); + buffer.write(this[i]); } } else { - buffer.write("${this[0]}"); + buffer.write(this[0]); for (int i = 1; i < this.length; i++) { buffer.write(separator); - buffer.write("${this[i]}"); + buffer.write(this[i]); } } return buffer.toString(); diff --git a/sdk/lib/io/http_headers.dart b/sdk/lib/io/http_headers.dart index 7a1c834c69c..5ecddca1b1b 100644 --- a/sdk/lib/io/http_headers.dart +++ b/sdk/lib/io/http_headers.dart @@ -449,8 +449,7 @@ class _HttpHeaders implements HttpHeaders { _updateHostHeader() { bool defaultPort = _port == null || _port == _defaultPortForScheme; - String portPart = defaultPort ? "" : ":$_port"; - _set("host", "$host$portPart"); + _set("host", defaultPort ? host : "$host:$_port"); } _foldHeader(String name) {