@@ -36,7 +36,6 @@ PHP_FUNCTION(git_diff_tree_to_tree)
3636 zval * new_tree = NULL ;
3737 php_git2_t * _new_tree = NULL ;
3838 zval * opts = NULL ;
39- int error = 0 ;
4039 git_diff_options options = {0 };
4140
4241 if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
@@ -59,7 +58,7 @@ PHP_FUNCTION(git_diff_tree_to_tree)
5958 */
6059PHP_FUNCTION (git_diff_tree_to_index )
6160{
62- int result = 0 , error = 0 ;
61+ int result = 0 ;
6362 git_diff * diff = NULL ;
6463 zval * repo = NULL , * old_tree = NULL , * index = NULL , * opts = NULL ;
6564 php_git2_t * _repo = NULL , * _old_tree = NULL , * _index = NULL , * _diff = NULL ;
@@ -88,7 +87,7 @@ PHP_FUNCTION(git_diff_tree_to_index)
8887 */
8988PHP_FUNCTION (git_diff_index_to_workdir )
9089{
91- int result = 0 , error = 0 ;
90+ int result = 0 ;
9291 git_diff * diff = NULL ;
9392 zval * repo = NULL , * index = NULL , * opts = NULL ;
9493 php_git2_t * _repo = NULL , * _index = NULL , * _diff = NULL ;
@@ -115,7 +114,7 @@ PHP_FUNCTION(git_diff_index_to_workdir)
115114 */
116115PHP_FUNCTION (git_diff_tree_to_workdir )
117116{
118- int result = 0 , error = 0 ;
117+ int result = 0 ;
119118 git_diff * diff = NULL ;
120119 zval * repo = NULL , * old_tree = NULL , * opts = NULL ;
121120 php_git2_t * _repo = NULL , * _old_tree = NULL , * _result ;
@@ -148,7 +147,7 @@ PHP_FUNCTION(git_diff_tree_to_workdir)
148147 */
149148PHP_FUNCTION (git_diff_tree_to_workdir_with_index )
150149{
151- int result = 0 , error = 0 ;
150+ int result = 0 ;
152151 git_diff * diff = NULL ;
153152 zval * repo = NULL , * old_tree = NULL , * opts = NULL ;
154153 php_git2_t * _repo = NULL , * _old_tree = NULL , * _diff = NULL ;
@@ -175,7 +174,7 @@ PHP_FUNCTION(git_diff_tree_to_workdir_with_index)
175174 */
176175PHP_FUNCTION (git_diff_merge )
177176{
178- int result = 0 , error = 0 ;
177+ int result = 0 ;
179178 zval * onto = NULL , * from = NULL ;
180179 php_git2_t * _onto = NULL , * _from = NULL ;
181180
@@ -199,7 +198,6 @@ PHP_FUNCTION(git_diff_find_similar)
199198 zval * diff = NULL ;
200199 php_git2_t * _diff = NULL ;
201200 zval * options = NULL ;
202- int error = 0 ;
203201 git_diff_options _options = {0 };
204202
205203 if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
@@ -223,7 +221,6 @@ PHP_FUNCTION(git_diff_options_init)
223221 git_diff_options options = {0 };
224222 long version = GIT_DIFF_OPTIONS_VERSION ;
225223 zval * out ;
226- int error = 0 ;
227224
228225 if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
229226 "|l" , & version ) == FAILURE ) {
@@ -303,7 +300,6 @@ PHP_FUNCTION(git_diff_is_sorted_icase)
303300 int result = 0 ;
304301 zval * diff = NULL ;
305302 php_git2_t * _diff = NULL ;
306- int error = 0 ;
307303
308304 if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
309305 "r" , & diff ) == FAILURE ) {
@@ -321,8 +317,8 @@ PHP_FUNCTION(git_diff_is_sorted_icase)
321317 */
322318PHP_FUNCTION (git_diff_foreach )
323319{
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 ;
326322 php_git2_t * _diff = NULL ;
327323 zend_fcall_info file_fci = empty_fcall_info ;
328324 zend_fcall_info_cache file_fcc = empty_fcall_info_cache ;
@@ -371,8 +367,8 @@ PHP_FUNCTION(git_diff_status_char)
371367 */
372368PHP_FUNCTION (git_diff_print )
373369{
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 ;
376372 php_git2_t * _diff = NULL ;
377373 zend_fcall_info fci = empty_fcall_info ;
378374 zend_fcall_info_cache fcc = empty_fcall_info_cache ;
@@ -398,8 +394,8 @@ PHP_FUNCTION(git_diff_print)
398394 */
399395PHP_FUNCTION (git_diff_blobs )
400396{
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 ;
403399 php_git2_t * _old_blob = NULL , * _new_blob = NULL ;
404400 char * old_as_path = NULL , * new_as_path = NULL ;
405401 zend_fcall_info file_fci = empty_fcall_info ;
@@ -436,8 +432,8 @@ PHP_FUNCTION(git_diff_blobs)
436432 */
437433PHP_FUNCTION (git_diff_blob_to_buffer )
438434{
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 ;
441437 php_git2_t * _old_blob = NULL ;
442438 char * old_as_path = NULL , * buffer = NULL , * buffer_as_path = NULL ;
443439 zend_fcall_info file_fci = empty_fcall_info ;
0 commit comments