Skip to content

Commit aae9004

Browse files
author
Julien Pauli
committed
Removed dead code
1 parent 5f54027 commit aae9004

File tree

5 files changed

+0
-9
lines changed

5 files changed

+0
-9
lines changed

ext/iconv/iconv.c

-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ static int php_iconv_output_handler(void **nothing, php_output_context *output_c
401401
{
402402
char *s, *content_type, *mimetype = NULL;
403403
int output_status, mimetype_len = 0;
404-
PHP_OUTPUT_TSRMLS(output_context);
405404

406405
if (output_context->op & PHP_OUTPUT_HANDLER_START) {
407406
output_status = php_output_get_status();

ext/tidy/tidy.c

-1
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,6 @@ static int php_tidy_output_handler(void **nothing, php_output_context *output_co
11491149
int status = FAILURE;
11501150
TidyDoc doc;
11511151
TidyBuffer inbuf, outbuf, errbuf;
1152-
PHP_OUTPUT_TSRMLS(output_context);
11531152

11541153
if (TG(clean_output) && (output_context->op & PHP_OUTPUT_HANDLER_START) && (output_context->op & PHP_OUTPUT_HANDLER_FINAL)) {
11551154
doc = tidyCreate();

ext/zlib/zlib.c

-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ static int php_zlib_output_encoding(void)
124124
static int php_zlib_output_handler_ex(php_zlib_context *ctx, php_output_context *output_context)
125125
{
126126
int flags = Z_SYNC_FLUSH;
127-
PHP_OUTPUT_TSRMLS(output_context);
128127

129128
if (output_context->op & PHP_OUTPUT_HANDLER_START) {
130129
/* start up */
@@ -210,7 +209,6 @@ static int php_zlib_output_handler_ex(php_zlib_context *ctx, php_output_context
210209
static int php_zlib_output_handler(void **handler_context, php_output_context *output_context)
211210
{
212211
php_zlib_context *ctx = *(php_zlib_context **) handler_context;
213-
PHP_OUTPUT_TSRMLS(output_context);
214212

215213
if (!php_zlib_output_encoding()) {
216214
/* "Vary: Accept-Encoding" header sent along uncompressed content breaks caching in MSIE,

main/output.c

-2
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,6 @@ static inline php_output_handler_status_t php_output_handler_op(php_output_handl
909909
{
910910
php_output_handler_status_t status;
911911
int original_op = context->op;
912-
PHP_OUTPUT_TSRMLS(context);
913912

914913
#if PHP_OUTPUT_DEBUG
915914
fprintf(stderr, ">>> op(%d, "
@@ -1249,7 +1248,6 @@ static inline int php_output_stack_pop(int flags)
12491248
static int php_output_handler_compat_func(void **handler_context, php_output_context *output_context)
12501249
{
12511250
php_output_handler_func_t func = *(php_output_handler_func_t *) handler_context;
1252-
PHP_OUTPUT_TSRMLS(output_context);
12531251

12541252
if (func) {
12551253
char *out_str = NULL;

main/php_output.h

-3
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ typedef struct _php_output_context {
104104
php_output_buffer out;
105105
} php_output_context;
106106

107-
/* XXX remove this after TLS branch merge */
108-
#define PHP_OUTPUT_TSRMLS(ctx)
109-
110107
/* old-style, stateless callback */
111108
typedef void (*php_output_handler_func_t)(char *output, size_t output_len, char **handled_output, size_t *handled_output_len, int mode);
112109
/* new-style, opaque context callback */

0 commit comments

Comments
 (0)