From patchwork Tue Sep 10 19:08:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 34483 Received: (qmail 26252 invoked by alias); 10 Sep 2019 19:09:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 25882 invoked by uid 89); 10 Sep 2019 19:09:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=H*r:esmtpa, HX-Spam-Relays-External:esmtpa, H*RU:esmtpa X-HELO: gateway21.websitewelcome.com Received: from gateway21.websitewelcome.com (HELO gateway21.websitewelcome.com) (192.185.45.159) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Sep 2019 19:09:08 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway21.websitewelcome.com (Postfix) with ESMTP id 46CFC400CB9A4 for ; Tue, 10 Sep 2019 14:09:07 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 7lViin37890on7lVjiWRZY; Tue, 10 Sep 2019 14:09:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rR/0H9rfA1ei/KzHTTam3fP9mBrYgKNgkifBeBNVXlE=; b=TKVymzNKL/NY+7fObbCPWGHGJz 6WLuMlP7zWyCM8KSNBj8Q3euYAU+7XN25xPzSv/hyBPqLCnCAoB0FSRaIK6F+4COJJccjrNLBIRk8 ruxbp6lxXnUbgb7L5zFtl6DJh; Received: from 71-218-73-27.hlrn.qwest.net ([71.218.73.27]:51788 helo=bapiya.Home) by box5379.bluehost.com with esmtpa (Exim 4.92) (envelope-from ) id 1i7lVi-000EcZ-Gg; Tue, 10 Sep 2019 14:09:06 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 17/20] Remove strcat_to_buf Date: Tue, 10 Sep 2019 13:08:54 -0600 Message-Id: <20190910190857.6562-18-tom@tromey.com> In-Reply-To: <20190910190857.6562-1-tom@tromey.com> References: <20190910190857.6562-1-tom@tromey.com> An earlier patch in the series removed the last call to strcat_to_buf, so this patch removes the function entirely. gdb/ChangeLog 2019-09-10 Tom Tromey * tui/tui.h (strcat_to_buf): Don't declare. * tui/tui.c (strcat_to_buf): Remove. --- gdb/ChangeLog | 5 +++++ gdb/tui/tui.c | 13 ------------- gdb/tui/tui.h | 2 -- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 35a7ec70532..e1f65f17326 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -567,19 +567,6 @@ tui_disable_command (const char *args, int from_tty) tui_disable (); } -void -strcat_to_buf (char *buf, int buflen, - const char *item_to_add) -{ - if (item_to_add != NULL && buf != NULL) - { - if ((strlen (buf) + strlen (item_to_add)) <= buflen) - strcat (buf, item_to_add); - else - strncat (buf, item_to_add, (buflen - strlen (buf))); - } -} - #if 0 /* Solaris defines CTRL. */ #ifndef CTRL diff --git a/gdb/tui/tui.h b/gdb/tui/tui.h index 25ae0c5e471..baf4a813b60 100644 --- a/gdb/tui/tui.h +++ b/gdb/tui/tui.h @@ -24,8 +24,6 @@ struct ui_file; -extern void strcat_to_buf (char *, int, const char *); - /* Types of error returns. */ enum tui_status {