diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-03-27 18:56:44 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-04-19 01:13:08 +0200 |
commit | 936d5613e4b6145798c5a1d0c484158115576fa8 (patch) | |
tree | 6e94f96af122e0c280942a6c68c17651aa97afb3 /methods | |
parent | 27925d82dd0cbae74d48040363fe6f6c2bae5215 (diff) |
remove duplicated check for same file copy
Git-Dch: Ignore
Diffstat (limited to 'methods')
-rw-r--r-- | methods/copy.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/methods/copy.cc b/methods/copy.cc index a23c0316c..f3cd84215 100644 --- a/methods/copy.cc +++ b/methods/copy.cc @@ -65,17 +65,9 @@ bool CopyMethod::Fetch(FetchItem *Itm) Res.Size = Buf.st_size; Res.Filename = Itm->DestFile; Res.LastModified = Buf.st_mtime; - Res.IMSHit = false; + Res.IMSHit = false; URIStart(Res); - // when the files are identical, just compute the hashes - if(File == Itm->DestFile) - { - CalculateHashes(Res); - URIDone(Res); - return true; - } - // just calc the hashes if the source and destination are identical if (File == Itm->DestFile) { |