From: Juergen Ributzka Date: Fri, 10 Mar 2017 21:23:29 +0000 (+0000) Subject: [VFS] Remove the Path variable from RealFSDirIter. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57f2628a98c28b87e414fa925315a1d066987232;p=clang [VFS] Remove the Path variable from RealFSDirIter. NFC. This variable is set, but never used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297511 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/VirtualFileSystem.cpp b/lib/Basic/VirtualFileSystem.cpp index 63348724b1..f5db717866 100644 --- a/lib/Basic/VirtualFileSystem.cpp +++ b/lib/Basic/VirtualFileSystem.cpp @@ -238,11 +238,9 @@ IntrusiveRefCntPtr vfs::getRealFileSystem() { namespace { class RealFSDirIter : public clang::vfs::detail::DirIterImpl { - std::string Path; llvm::sys::fs::directory_iterator Iter; public: - RealFSDirIter(const Twine &_Path, std::error_code &EC) - : Path(_Path.str()), Iter(Path, EC) { + RealFSDirIter(const Twine &Path, std::error_code &EC) : Iter(Path, EC) { if (!EC && Iter != llvm::sys::fs::directory_iterator()) { llvm::sys::fs::file_status S; EC = Iter->status(S);