diff options
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/vdex_file.cc | 3 | ||||
| -rw-r--r-- | runtime/vdex_file.h | 4 | 
2 files changed, 3 insertions, 4 deletions
diff --git a/runtime/vdex_file.cc b/runtime/vdex_file.cc index 12bc45108e..a71578b1c3 100644 --- a/runtime/vdex_file.cc +++ b/runtime/vdex_file.cc @@ -19,6 +19,7 @@  #include <memory>  #include "base/logging.h" +#include "base/unix_file/fd_file.h"  namespace art { @@ -81,7 +82,7 @@ VdexFile* VdexFile::Open(const std::string& vdex_filename,    }    *error_msg = "Success"; -  return new VdexFile(vdex_file.release(), mmap.release()); +  return new VdexFile(mmap.release());  }  }  // namespace art diff --git a/runtime/vdex_file.h b/runtime/vdex_file.h index e381eb79ca..9215e52b07 100644 --- a/runtime/vdex_file.h +++ b/runtime/vdex_file.h @@ -21,7 +21,6 @@  #include <string>  #include "base/macros.h" -#include "base/unix_file/fd_file.h"  #include "mem_map.h"  #include "os.h" @@ -66,9 +65,8 @@ class VdexFile {    size_t Size() const { return mmap_->Size(); }   private: -  VdexFile(File* file, MemMap* mmap) : file_(file), mmap_(mmap) {} +  explicit VdexFile(MemMap* mmap) : mmap_(mmap) {} -  std::unique_ptr<File> file_;    std::unique_ptr<MemMap> mmap_;    DISALLOW_COPY_AND_ASSIGN(VdexFile);  |