Skip to content

Commit

Permalink
Remove startTime and count from async reading
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilm committed Mar 22, 2012
1 parent 4823c22 commit 5cac265
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/tag.cc
Expand Up @@ -15,7 +15,6 @@ static suseconds_t now()
return t.tv_usec;
}

static int count = 0;
static Persistent<FunctionTemplate> TagTemplate;

void Tag::Initialize(Handle<Object> target)
Expand Down Expand Up @@ -250,7 +249,6 @@ v8::Handle<v8::Value> Tag::AsyncTag(const v8::Arguments &args) {
baton->tag = NULL;
baton->callback = Persistent<Function>::New(callback);
baton->error = 0;
baton->startTime = now();

uv_queue_work(uv_default_loop(), &baton->request, Tag::AsyncTagRead, Tag::AsyncTagReadAfter);

Expand All @@ -275,7 +273,6 @@ void Tag::AsyncTagReadAfter(uv_work_t *req) {

AsyncTagBaton *baton = static_cast<AsyncTagBaton*>(req->data);

count++;
if (baton->error) {
Local<Object> error = Object::New();
error->Set(String::New("code"), Integer::New(baton->error));
Expand Down
1 change: 0 additions & 1 deletion src/tag.h
Expand Up @@ -58,7 +58,6 @@ struct AsyncTagBaton {
Tag *tag;
v8::Persistent<v8::Function> callback;
int error;
suseconds_t startTime;
};

struct AsyncSaveBaton {
Expand Down

0 comments on commit 5cac265

Please sign in to comment.