From 41c1563584bfb018a444e92f01f8cff87ccda30b Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 1 Nov 2010 14:59:30 -0700 Subject: [PATCH] Remove old buffer api --- src/node_buffer.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/node_buffer.h b/src/node_buffer.h index 47b9961e45..909be452f7 100644 --- a/src/node_buffer.h +++ b/src/node_buffer.h @@ -37,17 +37,7 @@ class Buffer : public ObjectWrap { static char* Data(v8::Handle); static size_t Length(v8::Handle); - char* data() { - assert(0 && "v0.3 API change: Use node::Buffer::Data()."); - return NULL; - } - - size_t length() const { - assert(0 && "v0.3 API change: Use node::Buffer::Length()."); - return 0; - } - - private: + private: static v8::Persistent constructor_template; static v8::Handle New(const v8::Arguments &args);