]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexcopy.cc
apply various style suggestions by cppcheck
[apt.git] / apt-pkg / indexcopy.cc
index 120d061ad942816bce25739db05ec0fd8750b6ba..b0f191deda9cd82f2aa9ac87869e351e9d22b206 100644 (file)
@@ -424,7 +424,6 @@ bool PackageCopy::GetFile(string &File,unsigned long long &Size)
 // PackageCopy::RewriteEntry - Rewrite the entry with a new filename   /*{{{*/
 bool PackageCopy::RewriteEntry(FileFd &Target,string const &File)
 {
-   string const Dir(File,0,File.rfind('/'));
    std::vector<pkgTagSection::Tag> Changes;
    Changes.push_back(pkgTagSection::Tag::Rewrite("Filename", File));