Index: src/allocation.h |
diff --git a/src/allocation.h b/src/allocation.h |
index b70087955cbdaad42da9feee1af97d5e472c9414..45bde4c4cb07068a05e301d2124990637d82609d 100644 |
--- a/src/allocation.h |
+++ b/src/allocation.h |
@@ -104,7 +104,6 @@ char* StrNDup(const char* str, int n); |
// and free. Used as the default policy for lists. |
class FreeStoreAllocationPolicy { |
public: |
- typedef FreeStoreAllocationPolicy Deleter; |
INLINE(void* New(size_t size)) { return Malloced::New(size); } |
INLINE(static void Delete(void* p)) { Malloced::Delete(p); } |
}; |
@@ -132,21 +131,9 @@ class PreallocatedStorage { |
}; |
-class Isolate; |
- |
- |
-class PreallocatedStorageAllocationPolicy { |
- public: |
- typedef PreallocatedStorageAllocationPolicy Deleter; |
- INLINE(explicit PreallocatedStorageAllocationPolicy(Isolate* isolate)) |
- : isolate_(isolate) { } |
- INLINE(PreallocatedStorageAllocationPolicy( |
- const PreallocatedStorageAllocationPolicy& policy)) |
- : isolate_(policy.isolate_) { } |
+struct PreallocatedStorageAllocationPolicy { |
INLINE(void* New(size_t size)); |
- INLINE(void Delete(void* ptr)); |
- private: |
- Isolate* isolate_; |
+ INLINE(static void Delete(void* ptr)); |
}; |