diff options
author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-12 01:56:16 +0000 |
---|---|---|
committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-12 01:56:16 +0000 |
commit | 2b2e84a2cfca71cedec50ca8c6344ad10868521d (patch) | |
tree | 301da2cdeb634d5d13c04678725293705cd3210b /net/base | |
parent | f983c1d98c96014abdb5db3a9f819c7abae94f76 (diff) | |
download | chromium_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')
-rw-r--r-- | net/base/upload_data.cc | 8 | ||||
-rw-r--r-- | net/base/upload_data.h | 4 |
2 files changed, 2 insertions, 10 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) { diff --git a/net/base/upload_data.h b/net/base/upload_data.h index 792d06b..18136e7 100644 --- a/net/base/upload_data.h +++ b/net/base/upload_data.h @@ -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. @@ -145,8 +145,6 @@ class NET_EXPORT UploadData : public base::RefCounted<UploadData> { void AppendBytes(const char* bytes, int bytes_len); - void AppendFile(const FilePath& file_path); - void AppendFileRange(const FilePath& file_path, uint64 offset, uint64 length, const base::Time& expected_modification_time); |