Skip to content

Commit

Permalink
Remove old buffer api
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Nov 1, 2010
1 parent f1391f3 commit 41c1563
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/node_buffer.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -37,17 +37,7 @@ class Buffer : public ObjectWrap {
static char* Data(v8::Handle<v8::Object>); static char* Data(v8::Handle<v8::Object>);
static size_t Length(v8::Handle<v8::Object>); static size_t Length(v8::Handle<v8::Object>);


char* data() { private:
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:
static v8::Persistent<v8::FunctionTemplate> constructor_template; static v8::Persistent<v8::FunctionTemplate> constructor_template;


static v8::Handle<v8::Value> New(const v8::Arguments &args); static v8::Handle<v8::Value> New(const v8::Arguments &args);
Expand Down

0 comments on commit 41c1563

Please sign in to comment.