From: Greg Beaver Date: Mon, 21 Apr 2008 16:51:26 +0000 (+0000) Subject: remove unused code X-Git-Tag: RELEASE_2_0_0b1~282 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a4a54f64ba88bc640335cce11ba810367340351;p=php remove unused code --- diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 001ae239b1..974e131153 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -1964,20 +1964,6 @@ static inline void phar_set_32(char *buffer, int var) /* {{{ */ #endif } /* }}} */ -/** - * The only purpose of this is to store the API version, which was stored bigendian for some reason - * in the original PHP_Archive, so we will do the same - */ -static inline void phar_set_16(char *buffer, int var) /* {{{ */ -{ -#ifdef WORDS_BIGENDIAN - *((buffer) + 1) = (unsigned char) (((var) >> 8) & 0xFF); \ - *(buffer) = (unsigned char) ((var) & 0xFF); -#else - *(php_uint16 *)(buffer) = (php_uint16)(var); -#endif -} /* }}} */ - static int phar_flush_clean_deleted_apply(void *data TSRMLS_DC) /* {{{ */ { phar_entry_info *entry = (phar_entry_info *)data;