about summary refs log tree commit diff
path: root/src/download-via-ssh
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-02-12T12·27-0500
committerShea Levy <shea@shealevy.com>2014-02-12T12·27-0500
commit62eb9eb76ddacc1aa97400bef9f25b6ca4c50c8c (patch)
tree613a0d84ab6dbba3ccec4cda76a476425e9e244a /src/download-via-ssh
parent7438f0bc2bc4b92bddf7159744ab2923e34b7457 (diff)
Remove relic of old code
Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'src/download-via-ssh')
-rw-r--r--src/download-via-ssh/download-via-ssh.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/download-via-ssh/download-via-ssh.cc b/src/download-via-ssh/download-via-ssh.cc
index dee4fd78c9d0..d85f1572f33e 100644
--- a/src/download-via-ssh/download-via-ssh.cc
+++ b/src/download-via-ssh/download-via-ssh.cc
@@ -67,7 +67,6 @@ static void query(std::pair<FdSink, FdSource> & pipes) {
         tokenized.pop_front();
         if (cmd == "have") {
             writeInt(qCmdHave, pipes.first);
-            foreach (Strings::iterator, i, tokenized)
             writeStrings(tokenized, pipes.first);
             pipes.first.flush();
             PathSet paths = readStrings<PathSet>(pipes.second);
@@ -75,7 +74,6 @@ static void query(std::pair<FdSink, FdSource> & pipes) {
                 std::cout << *i << std::endl;
         } else if (cmd == "info") {
             writeInt(qCmdInfo, pipes.first);
-            foreach (Strings::iterator, i, tokenized)
             writeStrings(tokenized, pipes.first);
             pipes.first.flush();
             for (Path path = readString(pipes.second); !path.empty(); path = readString(pipes.second)) {