Skip to content

Commit 225d852

Browse files
committed
Removed sync open method
1 parent ad251eb commit 225d852

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

include/repo.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,14 @@ class GitRepo : public ObjectWrap {
2222
static void Initialize(Handle<v8::Object> target);
2323
git_repository* GetValue();
2424
void SetValue(git_repository* repo);
25+
2526
// Asynchronous
2627
int Open(const char* path);
2728
int Init(const char* path, bool is_bare);
29+
2830
// Synchronous
2931
void Free();
3032

31-
// TODO: Implement these methods
32-
//int Open2(const char* path);
33-
//int Open3(const char* path);
34-
//int Lookup(Object **obj, Oid *id, Otype type);
35-
//Odb Database();
36-
//int Index(Index **index);
37-
//int NewObject(git_object **obj, Otype type);
38-
3933
protected:
4034
GitRepo() {}
4135
~GitRepo() {}

src/repo.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ void GitRepo::SetValue(git_repository* repo) {
4040
this->repo = repo;
4141
}
4242

43-
int GitRepo::Open(const char* path) {
44-
return git_repository_open(&this->repo, path);
45-
}
46-
4743
void GitRepo::Free() {
4844
git_repository_free(this->repo);
4945
}

0 commit comments

Comments
 (0)