libstdc++: Remove std_ratio_t_tuple
This removes the std_ratio_t_tuple function from the Python pretty-printer code. It is not used. Apparently the relevant parts were moved to StdChronoDurationPrinter._ratio at some point in the past. libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py (std_ratio_t_tuple): Remove.
This commit is contained in:
parent
33841921a2
commit
860b284e3e
1 changed files with 0 additions and 8 deletions
|
@ -2019,14 +2019,6 @@ class StdFormatArgsPrinter(printer_base):
|
|||
return "%s with %d arguments" % (typ, size)
|
||||
|
||||
|
||||
def std_ratio_t_tuple(ratio_type):
|
||||
# TODO use reduced period i.e. duration::period
|
||||
period = self._val.type.template_argument(1)
|
||||
num = period.template_argument(0)
|
||||
den = period.template_argument(1)
|
||||
return (num, den)
|
||||
|
||||
|
||||
class StdChronoDurationPrinter(printer_base):
|
||||
"""Print a std::chrono::duration."""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue