From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 757E7386192A; Thu, 28 Sep 2023 20:56:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 757E7386192A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695934608; bh=Xz3WE+24twiS5uH+t4iKm7Ogn8EslSjdbMmehexMB4o=; h=From:To:Subject:Date:From; b=JL8gxS8BRvwxn5UjRYxhr9TDNjCxmC34LeYVwhwPg7NOvZ7iBizshYYTEUXeracQI VfGb178yLLkdxdNiBX6U0c8L7KyJf+FGT/VhO4T9M3iVuueTX7KLrXsHAj/4xBMuO/ Am7gFM63MxrP7reMT0GayBPyeSJeVLxtckrKY/r8= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Tom Tromey To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r14-4322] libstdc++: Remove std_ratio_t_tuple X-Act-Checkin: gcc X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 33841921a2b1153e6d79f0b4a5870f12aa2e86a1 X-Git-Newrev: 860b284e3eea49e5bd49e6fe07c66e53faebb893 Message-Id: <20230928205648.757E7386192A@sourceware.org> Date: Thu, 28 Sep 2023 20:56:48 +0000 (GMT) List-Id: https://gcc.gnu.org/g:860b284e3eea49e5bd49e6fe07c66e53faebb893 commit r14-4322-g860b284e3eea49e5bd49e6fe07c66e53faebb893 Author: Tom Tromey Date: Tue Sep 26 14:04:26 2023 -0600 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. Diff: --- libstdc++-v3/python/libstdcxx/v6/printers.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index c5ecd881b73..e530cfc0e3a 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -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."""