mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 12:45:18 +03:00
61 lines
2.4 KiB
Diff
61 lines
2.4 KiB
Diff
From d983b8f76f59996339a434c40d1f57703fadbd42 Mon Sep 17 00:00:00 2001
|
|
From: Remi Collet <remi@remirepo.net>
|
|
Date: Tue, 4 Feb 2020 08:25:35 +0100
|
|
Subject: [PATCH] fix #33 remomve unused function
|
|
|
|
---
|
|
src/convert.c | 15 +--------------
|
|
src/convert.h | 2 --
|
|
2 files changed, 1 insertion(+), 16 deletions(-)
|
|
|
|
diff --git a/src/convert.c b/src/convert.c
|
|
index 4136a35..77581e3 100644
|
|
--- a/src/convert.c
|
|
+++ b/src/convert.c
|
|
@@ -444,19 +444,6 @@ zend_string *php_decimal_rational_to_sci(const php_rational_t *obj, zend_long pr
|
|
return str;
|
|
}
|
|
|
|
-zend_string *php_decimal_rational_to_eng(const php_rational_t *obj, zend_long prec)
|
|
-{
|
|
- zend_string *str;
|
|
-
|
|
- PHP_DECIMAL_TEMP_MPD(tmp);
|
|
- php_decimal_rational_evaluate(&tmp, obj, prec);
|
|
-
|
|
- str = php_decimal_mpd_to_eng(&tmp);
|
|
- mpd_del(&tmp);
|
|
-
|
|
- return str;
|
|
-}
|
|
-
|
|
zend_string *php_decimal_rational_to_fixed(const php_rational_t *obj, zend_long places, zend_bool commas, php_decimal_rounding_t mode)
|
|
{
|
|
PHP_DECIMAL_TEMP_MPD(tmp);
|
|
@@ -597,4 +584,4 @@ void php_decimal_number_to_num_den(mpd_t *num, mpd_t *den, const zval *obj)
|
|
|
|
assert(status == 0);
|
|
zval_ptr_dtor(&result);
|
|
-}
|
|
\ No newline at end of file
|
|
+}
|
|
diff --git a/src/convert.h b/src/convert.h
|
|
index cb5e031..a3924e3 100644
|
|
--- a/src/convert.h
|
|
+++ b/src/convert.h
|
|
@@ -56,7 +56,6 @@ php_decimal_success_t php_decimal_mpd_set_string(mpd_t *mpd, const zend_string *
|
|
php_decimal_success_t php_decimal_mpd_set_charptr(mpd_t *mpd, const char *str);
|
|
|
|
zend_string *php_decimal_mpd_to_serialized(const mpd_t *mpd);
|
|
-zend_string *php_decimal_mpd_to_eng(const mpd_t *mpd);
|
|
zend_string *php_decimal_mpd_to_sci(const mpd_t *mpd);
|
|
zend_string *php_decimal_mpd_to_string(const mpd_t *mpd);
|
|
zend_string *php_decimal_mpd_to_fixed(const mpd_t *mpd, zend_long places, zend_bool commas, php_decimal_rounding_t mode);
|
|
@@ -69,7 +68,6 @@ void php_decimal_rational_set_nan(php_rational_t *obj);
|
|
void php_decimal_rational_set_zero(php_rational_t *obj);
|
|
|
|
zend_string *php_decimal_rational_to_sci(const php_rational_t *obj, zend_long prec);
|
|
-zend_string *php_decimal_rational_to_eng(const php_rational_t *obj, zend_long prec);
|
|
zend_string *php_decimal_rational_to_string(const php_rational_t *obj);
|
|
zend_string *php_decimal_rational_to_fixed(const php_rational_t *obj, zend_long places, zend_bool commas, php_decimal_rounding_t mode);
|
|
zend_long php_decimal_rational_to_long(const php_rational_t *obj);
|