summaryrefslogtreecommitdiffstats
path: root/net/base/upload_data.cc
diff options
context:
space:
mode:
authorsatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-12 01:56:16 +0000
committersatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-12 01:56:16 +0000
commit2b2e84a2cfca71cedec50ca8c6344ad10868521d (patch)
tree301da2cdeb634d5d13c04678725293705cd3210b /net/base/upload_data.cc
parentf983c1d98c96014abdb5db3a9f819c7abae94f76 (diff)
downloadchromium_src-2b2e84a2cfca71cedec50ca8c6344ad10868521d.zip
chromium_src-2b2e84a2cfca71cedec50ca8c6344ad10868521d.tar.gz
chromium_src-2b2e84a2cfca71cedec50ca8c6344ad10868521d.tar.bz2
Remove unused code from UploadData and URLRequest.
URLRequest::AppendFileToUpload() is no longer used as now file uploads are done with UploadData. TEST=chrome and tests build as before. BUG=72001 Review URL: http://codereview.chromium.org/9148016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117357 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/upload_data.cc')
-rw-r--r--net/base/upload_data.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/net/base/upload_data.cc b/net/base/upload_data.cc
index fb44a8d..3d0de30 100644
--- a/net/base/upload_data.cc
+++ b/net/base/upload_data.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -137,12 +137,6 @@ void UploadData::AppendBytes(const char* bytes, int bytes_len) {
}
}
-void UploadData::AppendFile(const FilePath& file_path) {
- DCHECK(!is_chunked_);
- elements_.push_back(Element());
- elements_.back().SetToFilePath(file_path);
-}
-
void UploadData::AppendFileRange(const FilePath& file_path,
uint64 offset, uint64 length,
const base::Time& expected_modification_time) {