diff --git a/ortools/lp_data/lp_print_utils.h b/ortools/lp_data/lp_print_utils.h index 0be1a1195f..78c4c5e10f 100644 --- a/ortools/lp_data/lp_print_utils.h +++ b/ortools/lp_data/lp_print_utils.h @@ -36,10 +36,6 @@ inline std::string Stringify(const double a) { return absl::StrFormat("%.16g", a); } -inline std::string Stringify(const long double a) { - return absl::StrFormat("%.19g", a); -} - // Returns a string "num/den" representing the rational approximation of x. // The absolute difference between the output fraction and the input "x" will // not exceed "precision". diff --git a/ortools/lp_data/lp_types.h b/ortools/lp_data/lp_types.h index 8d80f64c16..8d82fbe425 100644 --- a/ortools/lp_data/lp_types.h +++ b/ortools/lp_data/lp_types.h @@ -73,8 +73,6 @@ DEFINE_STRONG_INT64_TYPE(EntryIndex); static inline double ToDouble(double f) { return f; } -static inline double ToDouble(long double f) { return static_cast(f); } - // The type Fractional denotes the type of numbers on which the computations are // performed. This is defined as double here, but it could as well be float, // DoubleDouble, QuadDouble, or infinite-precision rationals.