@@ -36,7 +36,6 @@ PHP_FUNCTION(git_diff_tree_to_tree)
36
36
zval * new_tree = NULL ;
37
37
php_git2_t * _new_tree = NULL ;
38
38
zval * opts = NULL ;
39
- int error = 0 ;
40
39
git_diff_options options = {0 };
41
40
42
41
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
@@ -59,7 +58,7 @@ PHP_FUNCTION(git_diff_tree_to_tree)
59
58
*/
60
59
PHP_FUNCTION (git_diff_tree_to_index )
61
60
{
62
- int result = 0 , error = 0 ;
61
+ int result = 0 ;
63
62
git_diff * diff = NULL ;
64
63
zval * repo = NULL , * old_tree = NULL , * index = NULL , * opts = NULL ;
65
64
php_git2_t * _repo = NULL , * _old_tree = NULL , * _index = NULL , * _diff = NULL ;
@@ -88,7 +87,7 @@ PHP_FUNCTION(git_diff_tree_to_index)
88
87
*/
89
88
PHP_FUNCTION (git_diff_index_to_workdir )
90
89
{
91
- int result = 0 , error = 0 ;
90
+ int result = 0 ;
92
91
git_diff * diff = NULL ;
93
92
zval * repo = NULL , * index = NULL , * opts = NULL ;
94
93
php_git2_t * _repo = NULL , * _index = NULL , * _diff = NULL ;
@@ -115,7 +114,7 @@ PHP_FUNCTION(git_diff_index_to_workdir)
115
114
*/
116
115
PHP_FUNCTION (git_diff_tree_to_workdir )
117
116
{
118
- int result = 0 , error = 0 ;
117
+ int result = 0 ;
119
118
git_diff * diff = NULL ;
120
119
zval * repo = NULL , * old_tree = NULL , * opts = NULL ;
121
120
php_git2_t * _repo = NULL , * _old_tree = NULL , * _result ;
@@ -148,7 +147,7 @@ PHP_FUNCTION(git_diff_tree_to_workdir)
148
147
*/
149
148
PHP_FUNCTION (git_diff_tree_to_workdir_with_index )
150
149
{
151
- int result = 0 , error = 0 ;
150
+ int result = 0 ;
152
151
git_diff * diff = NULL ;
153
152
zval * repo = NULL , * old_tree = NULL , * opts = NULL ;
154
153
php_git2_t * _repo = NULL , * _old_tree = NULL , * _diff = NULL ;
@@ -175,7 +174,7 @@ PHP_FUNCTION(git_diff_tree_to_workdir_with_index)
175
174
*/
176
175
PHP_FUNCTION (git_diff_merge )
177
176
{
178
- int result = 0 , error = 0 ;
177
+ int result = 0 ;
179
178
zval * onto = NULL , * from = NULL ;
180
179
php_git2_t * _onto = NULL , * _from = NULL ;
181
180
@@ -199,7 +198,6 @@ PHP_FUNCTION(git_diff_find_similar)
199
198
zval * diff = NULL ;
200
199
php_git2_t * _diff = NULL ;
201
200
zval * options = NULL ;
202
- int error = 0 ;
203
201
git_diff_options _options = {0 };
204
202
205
203
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
@@ -223,7 +221,6 @@ PHP_FUNCTION(git_diff_options_init)
223
221
git_diff_options options = {0 };
224
222
long version = GIT_DIFF_OPTIONS_VERSION ;
225
223
zval * out ;
226
- int error = 0 ;
227
224
228
225
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
229
226
"|l" , & version ) == FAILURE ) {
@@ -303,7 +300,6 @@ PHP_FUNCTION(git_diff_is_sorted_icase)
303
300
int result = 0 ;
304
301
zval * diff = NULL ;
305
302
php_git2_t * _diff = NULL ;
306
- int error = 0 ;
307
303
308
304
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
309
305
"r" , & diff ) == FAILURE ) {
@@ -321,8 +317,8 @@ PHP_FUNCTION(git_diff_is_sorted_icase)
321
317
*/
322
318
PHP_FUNCTION (git_diff_foreach )
323
319
{
324
- int result = 0 , error = 0 ;
325
- zval * diff = NULL , * file_cb = NULL , * hunk_cb = NULL , * line_cb = NULL , * payload = NULL ;
320
+ int result = 0 ;
321
+ zval * diff = NULL , * payload = NULL ;
326
322
php_git2_t * _diff = NULL ;
327
323
zend_fcall_info file_fci = empty_fcall_info ;
328
324
zend_fcall_info_cache file_fcc = empty_fcall_info_cache ;
@@ -371,8 +367,8 @@ PHP_FUNCTION(git_diff_status_char)
371
367
*/
372
368
PHP_FUNCTION (git_diff_print )
373
369
{
374
- int result = 0 , error = 0 ;
375
- zval * diff = NULL , * print_cb = NULL , * payload = NULL ;
370
+ int result = 0 ;
371
+ zval * diff = NULL , * payload = NULL ;
376
372
php_git2_t * _diff = NULL ;
377
373
zend_fcall_info fci = empty_fcall_info ;
378
374
zend_fcall_info_cache fcc = empty_fcall_info_cache ;
@@ -398,8 +394,8 @@ PHP_FUNCTION(git_diff_print)
398
394
*/
399
395
PHP_FUNCTION (git_diff_blobs )
400
396
{
401
- int result = 0 , old_as_path_len = 0 , new_as_path_len = 0 , error = 0 ;
402
- zval * old_blob = NULL , * new_blob = NULL , * options = NULL , * file_cb = NULL , * hunk_cb = NULL , * line_cb = NULL , * payload = NULL ;
397
+ int result = 0 , old_as_path_len = 0 , new_as_path_len = 0 ;
398
+ zval * old_blob = NULL , * new_blob = NULL , * options = NULL , * payload = NULL ;
403
399
php_git2_t * _old_blob = NULL , * _new_blob = NULL ;
404
400
char * old_as_path = NULL , * new_as_path = NULL ;
405
401
zend_fcall_info file_fci = empty_fcall_info ;
@@ -436,8 +432,8 @@ PHP_FUNCTION(git_diff_blobs)
436
432
*/
437
433
PHP_FUNCTION (git_diff_blob_to_buffer )
438
434
{
439
- int result = 0 , old_as_path_len = 0 , buffer_len = 0 , buffer_as_path_len = 0 , error = 0 ;
440
- zval * old_blob = NULL , * options = NULL , * file_cb = NULL , * hunk_cb = NULL , * line_cb = NULL , * payload = NULL ;
435
+ int result = 0 , old_as_path_len = 0 , buffer_len = 0 , buffer_as_path_len = 0 ;
436
+ zval * old_blob = NULL , * options = NULL , * payload = NULL ;
441
437
php_git2_t * _old_blob = NULL ;
442
438
char * old_as_path = NULL , * buffer = NULL , * buffer_as_path = NULL ;
443
439
zend_fcall_info file_fci = empty_fcall_info ;
0 commit comments