Index: src/v8utils.cc |
diff --git a/src/v8utils.cc b/src/v8utils.cc |
index d696bf58c30745d5a37d9b490767bae2e2f19982..58ad4e5edd5262b7dba1e67c769250e090ac3af1 100644 |
--- a/src/v8utils.cc |
+++ b/src/v8utils.cc |
@@ -273,46 +273,4 @@ void StringBuilder::AddFormattedList(const char* format, va_list list) { |
} |
} |
- |
-MemoryMappedExternalResource::MemoryMappedExternalResource(const char* filename) |
- : filename_(NULL), |
- data_(NULL), |
- length_(0), |
- remove_file_on_cleanup_(false) { |
- Init(filename); |
-} |
- |
- |
-MemoryMappedExternalResource:: |
- MemoryMappedExternalResource(const char* filename, |
- bool remove_file_on_cleanup) |
- : filename_(NULL), |
- data_(NULL), |
- length_(0), |
- remove_file_on_cleanup_(remove_file_on_cleanup) { |
- Init(filename); |
-} |
- |
- |
-MemoryMappedExternalResource::~MemoryMappedExternalResource() { |
- // Release the resources if we had successfully acquired them: |
- if (file_ != NULL) { |
- delete file_; |
- if (remove_file_on_cleanup_) { |
- OS::Remove(filename_); |
- } |
- DeleteArray<char>(filename_); |
- } |
-} |
- |
- |
-void MemoryMappedExternalResource::Init(const char* filename) { |
- file_ = OS::MemoryMappedFile::open(filename); |
- if (file_ != NULL) { |
- filename_ = StrDup(filename); |
- data_ = reinterpret_cast<char*>(file_->memory()); |
- length_ = file_->size(); |
- } |
-} |
- |
} } // namespace v8::internal |