| Index: src/base/smart-pointers.h
|
| diff --git a/src/base/smart-pointers.h b/src/base/smart-pointers.h
|
| index df3fcac6626527b15041f95c266ac311a311d807..adda5a64e81d1d5bddf55c5ed6f93ac28f1039a5 100644
|
| --- a/src/base/smart-pointers.h
|
| +++ b/src/base/smart-pointers.h
|
| @@ -83,26 +83,6 @@ class SmartPointerBase {
|
| T* p_;
|
| };
|
|
|
| -// A 'scoped array pointer' that calls DeleteArray on its pointer when the
|
| -// destructor is called.
|
| -
|
| -template <typename T>
|
| -struct ArrayDeallocator {
|
| - static void Delete(T* array) { delete[] array; }
|
| -};
|
| -
|
| -
|
| -template <typename T>
|
| -class SmartArrayPointer : public SmartPointerBase<ArrayDeallocator<T>, T> {
|
| - public:
|
| - SmartArrayPointer() {}
|
| - explicit SmartArrayPointer(T* ptr)
|
| - : SmartPointerBase<ArrayDeallocator<T>, T>(ptr) {}
|
| - SmartArrayPointer(const SmartArrayPointer<T>& rhs)
|
| - : SmartPointerBase<ArrayDeallocator<T>, T>(rhs) {}
|
| -};
|
| -
|
| -
|
| template <typename T>
|
| struct ObjectDeallocator {
|
| static void Delete(T* object) { delete object; }
|
|
|