FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove old buffer api · oceanflat/node@41c1563 · GitHub

Repository navigation

Commit 41c1563

Browse files
committed
Remove old buffer api
1 parent f1391f3 commit 41c1563

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

‎src/node_buffer.h‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,7 @@ class Buffer : public ObjectWrap {
3737
static char* Data(v8::Handle<v8::Object>);
3838
static size_t Length(v8::Handle<v8::Object>);
3939

40-
char* data() {
41-
assert(0 && "v0.3 API change: Use node::Buffer::Data().");
42-
return NULL;
43-
}
44-
45-
size_t length() const {
46-
assert(0 && "v0.3 API change: Use node::Buffer::Length().");
47-
return 0;
48-
}
49-
50-
private:
40+
private:
5141
static v8::Persistent<v8::FunctionTemplate> constructor_template;
5242

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

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL