From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ePo9GMj29mK29CUAWB0awg (envelope-from ) for ; Fri, 12 Aug 2022 20:56:40 -0400 Received: by simark.ca (Postfix, from userid 112) id 5FDB01E745; Fri, 12 Aug 2022 20:56:40 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=deq7npTY; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 755EA1E5EA for ; Fri, 12 Aug 2022 20:56:39 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 26E2738582B4 for ; Sat, 13 Aug 2022 00:56:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 26E2738582B4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1660352199; bh=7f1fvW3ilGnwUb7UE4W2RHsJ0BQuDX4k8X+iqnF3B3s=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=deq7npTYCy1NaJyHXZnF+7FZrB4xtbxTKcngRAahq8PJixilwwVGM3TR5WI+pHY8X /eiixzBviH4kVkFQerdeR16TA7Ri+Xixc7RCzv7NaUB2M1nr3Wnh9AyBPn14nSkWoG /4Am6RLkFGWD/2kIUSxeYb3XFKJILFtGF83pso+4= Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by sourceware.org (Postfix) with ESMTPS id 4FD70385829F for ; Sat, 13 Aug 2022 00:54:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4FD70385829F Received: by mail-il1-x12c.google.com with SMTP id x2so1294240ilp.10 for ; Fri, 12 Aug 2022 17:54:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=7f1fvW3ilGnwUb7UE4W2RHsJ0BQuDX4k8X+iqnF3B3s=; b=DIo71IAchx/IuiwpyoQVlwZLdtVBPU25+eoXFHPceATQ6EvdM1VmP58Sp+zzD+wjJ/ yAqNfxNtL1Amur17aeVgDffzo2H4gCXTG0tD2dOZdLEYRT7ctjVt7PjskR/uBOTha8a7 HbfNLNzQzOIX2pq9w2EN4m40/YSrtwCyWQ8iZOB7S1uijZTxRknUeYlz7libNeQoe9L/ RABl5Yj8BgTZpobyzBNFp/9/91kOh9uSV/sENxh9aBvBZcLvlCV4Crr/4v07kkhl1aVX WSQrBsYAZFmj1ZDzjxLyNViH5SPVuf34gB6aTLPR5qvxECs4FMHQL6f8JqrywOf6zldV J3zg== X-Gm-Message-State: ACgBeo0jnK1fi0f4OEYA7C6UaIKStz88MKydCMm1iKWxk9Oh+GUwdk5k Sfu1Ar+Qw6HDg6lof5WjpZ002+unC/FTzQ== X-Google-Smtp-Source: AA6agR5AlRsNQbWF2D9kngywYZzl/xiBxMC6b5vzZA/PpXzsa9rxNE7NofU7jGGe4oI3mWN4TAPyHg== X-Received: by 2002:a05:6e02:1ba6:b0:2e4:a398:622a with SMTP id n6-20020a056e021ba600b002e4a398622amr1259528ili.51.1660352090527; Fri, 12 Aug 2022 17:54:50 -0700 (PDT) Received: from murgatroyd.Home (71-211-185-228.hlrn.qwest.net. [71.211.185.228]) by smtp.gmail.com with ESMTPSA id p17-20020a056638217100b00343455007f7sm494366jak.110.2022.08.12.17.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 17:54:50 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [PATCH 09/14] Remove tui_out_new Date: Fri, 12 Aug 2022 18:54:37 -0600 Message-Id: <20220813005442.4163512-10-tromey@adacore.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220813005442.4163512-1-tromey@adacore.com> References: <20220813005442.4163512-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom Tromey via Gdb-patches Reply-To: Tom Tromey Cc: Tom Tromey Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" tui_out_new is just a simple wrapper for 'new' and can be removed, simplifying gdb a tiny bit. --- gdb/tui/tui-io.c | 2 +- gdb/tui/tui-out.c | 6 ------ gdb/tui/tui-out.h | 2 -- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c index 51f08168a90..9f27f8bcc01 100644 --- a/gdb/tui/tui-io.c +++ b/gdb/tui/tui-io.c @@ -907,7 +907,7 @@ tui_initialize_io (void) tui_stdout = new pager_file (new tui_file (stdout)); tui_stderr = new tui_file (stderr); tui_stdlog = new timestamped_file (tui_stderr); - tui_out = tui_out_new (tui_stdout); + tui_out = new tui_ui_out (tui_stdout); /* Create the default UI. */ tui_old_uiout = new cli_ui_out (gdb_stdout); diff --git a/gdb/tui/tui-out.c b/gdb/tui/tui-out.c index ae50b65a3c6..fdbd9c9fcc3 100644 --- a/gdb/tui/tui-out.c +++ b/gdb/tui/tui-out.c @@ -109,9 +109,3 @@ tui_ui_out::tui_ui_out (ui_file *stream) : cli_ui_out (stream, 0) { } - -tui_ui_out * -tui_out_new (struct ui_file *stream) -{ - return new tui_ui_out (stream); -} diff --git a/gdb/tui/tui-out.h b/gdb/tui/tui-out.h index b71d308cf14..967900f0307 100644 --- a/gdb/tui/tui-out.h +++ b/gdb/tui/tui-out.h @@ -61,6 +61,4 @@ class tui_ui_out : public cli_ui_out int m_start_of_line = 0; }; -extern tui_ui_out *tui_out_new (struct ui_file *stream); - #endif /* TUI_TUI_OUT_H */ -- 2.34.1