diff options
author | Murray Cumming <murrayc@murrayc.com> | 2010-05-31 13:16:28 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2010-05-31 13:16:28 +0200 |
commit | de7e9208edb460830accf5835afcbbf9ac4d212b (patch) | |
tree | d74cd224716e60e11723a3ba2777f1a757c218fe /glib/glibmm/stringutils.cc | |
parent | f510673363137d691f5063bc68d9fa7bb3ef9709 (diff) | |
download | glibmm-de7e9208edb460830accf5835afcbbf9ac4d212b.tar.gz |
Remove the reduced API options and code, as discussed on mailing list.
* configure.ac: Removed the --enable-api-exceptions, --enable-api-properties,
--enable-api-vfuncs and --enable-api-default-signal-handlers options.
* build/reduced.m4: Removed.
* tools/m4/*.m4:
* tools/pm/Output.pm: Remove any use of ifdefs and auto_ptr for reduced API.
* *.[hg|ccg|h|cc]: Remove the idefed code.
Diffstat (limited to 'glib/glibmm/stringutils.cc')
-rw-r--r-- | glib/glibmm/stringutils.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/glib/glibmm/stringutils.cc b/glib/glibmm/stringutils.cc index 6cb781e5..1d786675 100644 --- a/glib/glibmm/stringutils.cc +++ b/glib/glibmm/stringutils.cc @@ -47,11 +47,7 @@ double Glib::Ascii::strtod(const std::string& str, { if(start_index > str.size()) { - #ifdef GLIBMM_EXCEPTIONS_ENABLED throw std::out_of_range("out of range (strtod): start_index > str.size()"); - #else - return 0; - #endif //GLIBMM_EXCEPTIONS_ENABLED } const char *const bufptr = str.c_str(); @@ -64,7 +60,6 @@ double Glib::Ascii::strtod(const std::string& str, { g_return_val_if_fail(err_no == ERANGE, result); - #ifdef GLIBMM_EXCEPTIONS_ENABLED //Interpret the result in the event of an error: if(result > 0.0) throw std::overflow_error("overflow (strtod): positive number too large"); @@ -73,9 +68,6 @@ double Glib::Ascii::strtod(const std::string& str, throw std::overflow_error("overflow (strtod): negative number too large"); throw std::underflow_error("underflow (strtod): number too small"); - #else - return result; - #endif // GLIBMM_EXCEPTIONS_ENABLED } if(endptr) |