Skip to content

Commit a811231

Browse files
committed
Tidied error.h
1 parent c4bffab commit a811231

1 file changed

Lines changed: 4 additions & 29 deletions

File tree

include/error.h

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,48 +16,23 @@ using namespace v8;
1616
using namespace node;
1717

1818
/**
19-
* Class: GitError
2019
* Wrapper for libgit2 git_error.
2120
*/
2221
class GitError : public ObjectWrap {
2322
public:
24-
/**
25-
* Variable: constructor_template
26-
* Used to create Node.js constructor.
27-
*/
23+
2824
static Persistent<Function> constructor_template;
29-
/**
30-
* Function: Initialize
31-
* Used to intialize the EventEmitter from Node.js
32-
*
33-
* Parameters:
34-
* target - Object the Node.js global module object
35-
*/
25+
3626
static void Initialize(Handle<Object> target);
3727

3828
static Local<Object> WrapError(const git_error* error);
3929

4030
protected:
41-
const git_error* error;
42-
43-
/**
44-
* Constructor: GitError
45-
*/
4631
GitError() {};
47-
/**
48-
* Deconstructor: GitError
49-
*/
5032
~GitError() {};
5133

52-
/**
53-
* Function: New
54-
*
55-
* Parameters:
56-
* args Arguments function call
57-
*
58-
* Returns:
59-
* Object args.This()
60-
*/
34+
const git_error* error;
35+
6136
static Handle<Value> New(const Arguments& args);
6237
};
6338

0 commit comments

Comments
 (0)