Sfoglia il codice sorgente

remove duplicated check for same file copy

Git-Dch: Ignore
David Kalnischkies 11 anni fa
parent
commit
936d5613e4
1 ha cambiato i file con 1 aggiunte e 9 eliminazioni
  1. 1 9
      methods/copy.cc

+ 1 - 9
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)
    {