Skip to content

Commit e59b4b8

Browse files
committed
Removed Oid unused functions
1 parent f4a90f5 commit e59b4b8

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

include/oid.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <v8.h>
1212
#include <node.h>
13+
#include <string>
1314

1415
#include "git2.h"
1516

@@ -22,35 +23,34 @@ class GitOid : public ObjectWrap {
2223
static Persistent<Function> constructor_template;
2324

2425
static void Initialize (Handle<v8::Object> target);
25-
Handle<Value> WrapObj(Local<Object> obj);
2626
git_oid GetValue();
2727
void SetValue(git_oid oid);
2828

29-
int Mkstr(const char* str);
30-
void Mkraw(const unsigned char* raw);
31-
void Fmt(char* buffer);
32-
void PathFmt(char *str);
33-
char* AllocFmt();
34-
char* ToString(char* buffer, size_t bufferSize);
35-
void Cpy(git_oid* out);
36-
int Cmp(const git_oid* a, const git_oid* b);
37-
29+
protected:
3830
GitOid() {}
3931
~GitOid() {}
4032

41-
protected:
4233
static Handle<Value> New(const Arguments& args);
43-
static Handle<Value> Mkstr(const Arguments& args);
44-
static Handle<Value> Mkraw(const Arguments& args);
45-
static Handle<Value> Fmt(const Arguments& args);
46-
static Handle<Value> PathFmt(const Arguments& args);
47-
static Handle<Value> AllocFmt(const Arguments& args);
48-
static Handle<Value> ToString(const Arguments& args);
49-
static Handle<Value> Cpy(const Arguments& args);
50-
static Handle<Value> Cmp(const Arguments& args);
34+
35+
static Handle<Value> Sha(const Arguments& args);
36+
37+
static Handle<Value> FromString(const Arguments& args);
38+
static void FromStringWork(uv_work_t* req);
39+
static void FromStringAfterWork(uv_work_t* req);
5140

5241
private:
5342
git_oid oid;
43+
44+
struct FromStringBaton {
45+
uv_work_t request;
46+
const git_error* error;
47+
48+
std::string fromString;
49+
GitOid* oid;
50+
git_oid rawOid;
51+
52+
Persistent<Function> callback;
53+
};
5454
};
5555

5656
#endif

0 commit comments

Comments
 (0)