Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions ext/intl/collator/collator_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,6 @@ U_CFUNC void collator_register_Collator_symbols(int module_number)
}
/* }}} */

/* {{{ void collator_object_init( Collator_object* co )
* Initialize internals of Collator_object.
* Must be called before any other call to 'collator_object_...' functions.
*/
U_CFUNC void collator_object_init( Collator_object* co )
{
if( !co )
return;

intl_error_init( COLLATOR_ERROR_P( co ) );
}
/* }}} */

/* {{{ void collator_object_destroy( Collator_object* co )
* Clean up mem allocted by internals of Collator_object
*/
Expand Down
1 change: 0 additions & 1 deletion ext/intl/collator/collator_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ static zend_always_inline zend_result collator_check_initialized(Collator_object
extern "C" {
#endif
void collator_register_Collator_symbols(int module_number);
void collator_object_init( Collator_object* co );
void collator_object_destroy( Collator_object* co );
#ifdef __cplusplus
}
Expand Down
13 changes: 0 additions & 13 deletions ext/intl/dateformat/dateformat_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,3 @@ void dateformat_data_free( dateformat_data* datef_data )
intl_error_reset( &datef_data->error );
}
/* }}} */

/* {{{ dateformat_data* dateformat_data_create()
* Allocate memory for dateformat_data and initialize it with default values.
*/
dateformat_data* dateformat_data_create( void )
{
dateformat_data* datef_data = reinterpret_cast<dateformat_data *>(ecalloc( 1, sizeof(dateformat_data) ));

dateformat_data_init( datef_data );

return datef_data;
}
/* }}} */
1 change: 0 additions & 1 deletion ext/intl/dateformat/dateformat_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ typedef struct {
#ifdef __cplusplus
extern "C" {
#endif
dateformat_data* dateformat_data_create( void );
void dateformat_data_init( dateformat_data* datef_data );
void dateformat_data_free( dateformat_data* datef_data );
#ifdef __cplusplus
Expand Down
13 changes: 0 additions & 13 deletions ext/intl/formatter/formatter_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,3 @@ void formatter_data_free( formatter_data* nf_data )
intl_error_reset( &nf_data->error );
}
/* }}} */

/* {{{ formatter_data* formatter_data_create()
* Alloc mem for formatter_data and initialize it with default values.
*/
formatter_data* formatter_data_create( void )
{
formatter_data* nf_data = reinterpret_cast<formatter_data *>(ecalloc( 1, sizeof(formatter_data) ));

formatter_data_init( nf_data );

return nf_data;
}
/* }}} */
1 change: 0 additions & 1 deletion ext/intl/formatter/formatter_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ typedef struct {
#ifdef __cplusplus
extern "C" {
#endif
formatter_data* formatter_data_create( void );
void formatter_data_init( formatter_data* nf_data );
void formatter_data_free( formatter_data* nf_data );
#ifdef __cplusplus
Expand Down
11 changes: 0 additions & 11 deletions ext/intl/intl_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,6 @@ static void intl_free_custom_error_msg( intl_error* err )
}
/* }}} */

/* {{{ Create and initialize internals of 'intl_error'. */
intl_error* intl_error_create( void )
{
intl_error* err = ecalloc( 1, sizeof( intl_error ) );

intl_error_init( err );

return err;
}
/* }}} */

/* {{{ Initialize internals of 'intl_error'. */
void intl_error_init( intl_error* err )
{
Expand Down
1 change: 0 additions & 1 deletion ext/intl/intl_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ typedef struct {
UErrorCode code;
} intl_error;

intl_error* intl_error_create( void );
void intl_error_init( intl_error* err );
void intl_error_reset( intl_error* err );
void intl_error_set_code( intl_error* err, UErrorCode err_code );
Expand Down
13 changes: 0 additions & 13 deletions ext/intl/msgformat/msgformat_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,6 @@ U_CFUNC void msgformat_data_free(msgformat_data* mf_data)
}
/* }}} */

/* {{{ msgformat_data* msgformat_data_create()
* Allocate memory for msgformat_data and initialize it with default values.
*/
msgformat_data* msgformat_data_create( void )
{
msgformat_data* mf_data = reinterpret_cast<msgformat_data *>(ecalloc( 1, sizeof(msgformat_data) ));

msgformat_data_init( mf_data );

return mf_data;
}
/* }}} */

#ifdef MSG_FORMAT_QUOTE_APOS
int msgformat_fix_quotes(UChar **spattern, uint32_t *spattern_len, UErrorCode *ec)
{
Expand Down
1 change: 0 additions & 1 deletion ext/intl/msgformat/msgformat_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ typedef struct {
#ifdef __cplusplus
extern "C" {
#endif
msgformat_data* msgformat_data_create( void );
void msgformat_data_init( msgformat_data* mf_data );
void msgformat_data_free( msgformat_data* mf_data );
#ifdef __cplusplus
Expand Down
7 changes: 0 additions & 7 deletions ext/intl/msgformat/msgformat_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,6 @@ using icu::MessagePattern;
using icu::MessageFormatAdapter;
using icu::FieldPosition;

U_CFUNC int32_t umsg_format_arg_count(UMessageFormat *fmt)
{
int32_t fmt_count = 0;
MessageFormatAdapter::phpGetArgTypeList(*(const MessageFormat*)fmt, fmt_count);
return fmt_count;
}

static void arg_types_dtor(zval *el) {
efree(Z_PTR_P(el));
}
Expand Down
1 change: 0 additions & 1 deletion ext/intl/msgformat/msgformat_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#ifndef MSG_FORMAT_HELPERS_H
#define MSG_FORMAT_HELPERS_H

int32_t umsg_format_arg_count(UMessageFormat *fmt);
void umsg_format_helper(MessageFormatter_object *mfo, HashTable *args,
UChar **formatted, int *formatted_len);
void umsg_parse_helper(UMessageFormat *fmt, int *count, zval **args,
Expand Down
14 changes: 0 additions & 14 deletions ext/intl/spoofchecker/spoofchecker_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,6 @@ U_CFUNC void spoofchecker_register_Spoofchecker_class(void)
}
/* }}} */

/* {{{ void spoofchecker_object_init( Spoofchecker_object* co )
* Initialize internals of Spoofchecker_object.
* Must be called before any other call to 'spoofchecker_object_...' functions.
*/
U_CFUNC void spoofchecker_object_init(Spoofchecker_object* co)
{
if (!co) {
return;
}

intl_error_init(SPOOFCHECKER_ERROR_P(co));
}
/* }}} */

/* {{{ void spoofchecker_object_destroy( Spoofchecker_object* co )
* Clean up mem allocted by internals of Spoofchecker_object
*/
Expand Down
1 change: 0 additions & 1 deletion ext/intl/spoofchecker/spoofchecker_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ extern "C" {
#endif
void spoofchecker_register_Spoofchecker_class(void);

void spoofchecker_object_init(Spoofchecker_object* co);
void spoofchecker_object_destroy(Spoofchecker_object* co);
#ifdef __cplusplus
}
Expand Down
Loading