diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2014-06-29 00:44:57 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2017-03-29 13:40:33 +0200 |
commit | c0972a5ffc3a6d1fb7ccfa8dc5a11d1afaf7c331 (patch) | |
tree | 0e809810dc01240bd389b2f2b716f8617c7262c7 /lib | |
parent | 5c57076891fd773190eb0f1657a09a4b64dfbc47 (diff) |
libiniparser: remove unused function needing float
Fixes:
| LD ubi-utils/ubiformat
| .../git/ubi-utils/libiniparser.a(libiniparser.o): In function
| ` LD ubi-utils/ubirename
| iniparser_getdouble':
| .../git/ubi-utils/libiniparser.c:336: undefined reference to `atof'
Grep doesn't reveal any occurrence of iniparser_getdouble(), using atof() so
remove it: floating-point is not supported in klibc
Upstream-Status: Pending
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libiniparser.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/libiniparser.c b/lib/libiniparser.c index 898f57f..ba70c08 100644 --- a/lib/libiniparser.c +++ b/lib/libiniparser.c @@ -316,28 +316,6 @@ int iniparser_getint(dictionary * d, const char * key, int notfound) /*-------------------------------------------------------------------------*/ /** - @brief Get the string associated to a key, convert to a double - @param d Dictionary to search - @param key Key string to look for - @param notfound Value to return in case of error - @return double - - This function queries a dictionary for a key. A key as read from an - ini file is given as "section:key". If the key cannot be found, - the notfound value is returned. - */ -/*--------------------------------------------------------------------------*/ -double iniparser_getdouble(dictionary * d, char * key, double notfound) -{ - char * str ; - - str = iniparser_getstring(d, key, INI_INVALID_KEY); - if (str==INI_INVALID_KEY) return notfound ; - return atof(str); -} - -/*-------------------------------------------------------------------------*/ -/** @brief Get the string associated to a key, convert to a boolean @param d Dictionary to search @param key Key string to look for |