Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-11-02 00:59:30 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-11-02 00:59:30 +0300
commit41c1563584bfb018a444e92f01f8cff87ccda30b (patch)
tree6f83d56d80c7a07beba8a668a19889b86a388299 /src/node_buffer.h
parentf1391f33cd8795fc35935136a53a1c3089453171 (diff)
Remove old buffer api
Diffstat (limited to 'src/node_buffer.h')
-rw-r--r--src/node_buffer.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/node_buffer.h b/src/node_buffer.h
index 47b9961e454..909be452f7f 100644
--- a/src/node_buffer.h
+++ b/src/node_buffer.h
@@ -37,17 +37,7 @@ class Buffer : public ObjectWrap {
static char* Data(v8::Handle<v8::Object>);
static size_t Length(v8::Handle<v8::Object>);
- 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<v8::FunctionTemplate> constructor_template;
static v8::Handle<v8::Value> New(const v8::Arguments &args);