From nobody Tue Oct 22 22:18:38 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=treblig.org ARC-Seal: i=1; a=rsa-sha256; t=1726756934; cv=none; d=zohomail.com; s=zohoarc; b=L1SDuKeDxidUVlSJGTlXgktbBkldwpiJBm/2Ic+0WBtMWT7QOzY8DQjxsmYEU4DCKSr0H8DGe/r14pKE3ZhICMe7ZlvAm+ZutCvH9Kb0aLqP9uwo0DpQYSn9RPI1W2K/yM3qryEsv1DuFBf1yNcjXvhoshWfVuDGj97W/pwd4pM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1726756934; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=KA40/g1ghVIaIRDpuWMJlyaSiF/sx7D2viFql/Mt6Js=; b=VZQ90oI7A6cClvz0QRaIwpLaPtdK3xsXMj55lBDX03CgxUdLgZW+qdXxsnPyr79pR1jMnxSPEujaj0IvbgrC7OD+lAZ2y9viB6/74d3Ckk5kkTMiPEW5MooobbMr8wiL5nuylxB6Xe9UpbP6F/SKkQfynz/pBVa+no9ZPjcqtWs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1726756934294991.8836080497694; Thu, 19 Sep 2024 07:42:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srILc-0000xr-Q1; Thu, 19 Sep 2024 10:41:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1srILa-0000xL-P2 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 10:41:30 -0400 Received: from mx.treblig.org ([2a00:1098:5b::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1srILY-0004B4-AJ for qemu-devel@nongnu.org; Thu, 19 Sep 2024 10:41:30 -0400 Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1srILW-006REK-0G; Thu, 19 Sep 2024 14:41:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=KA40/g1ghVIaIRDpuWMJlyaSiF/sx7D2viFql/Mt6Js=; b=KpEuPBINDAapwFD6 lXcLN7o31xkzHoP6z4O8JAqqP3fB8mZnNEuUrvcnjzAPsKONWsjyFHdv5aMjP6lVHULCRhytuxM9S vu/X90ucShmxZO2KmmoVSrs2W63iSm0gzBqZRAkcvhC1ZGByv5f2tBJE/19jUEAi3chF4sOj0yDgm FAZM//B/0mr+vEQ62AoOpGGZ568LHaGFLLS9tHgfkCiaO9KHAgL063Qn+ObanqVNwA0rSzwK+C5eZ Rl2zXBrtoG1FeTrHIQWY2ky3YEbJpKTPrP0JsI0ZBDAT4ioJkmB30CRfW85+zBehIsagoH0pmMF9i PFcajjsWMuVbyrZJPQ==; From: dave@treblig.org To: pbonzini@redhat.com, qemu-devel@nongnu.org Cc: "Dr. David Alan Gilbert" Subject: [PATCH v2] qemu-timer: Remove unused timer functions Date: Thu, 19 Sep 2024 15:41:24 +0100 Message-ID: <20240919144124.309646-1-dave@treblig.org> X-Mailer: git-send-email 2.46.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1098:5b::1; envelope-from=dave@treblig.org; helo=mx.treblig.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @treblig.org) X-ZM-MESSAGEID: 1726756936360116600 Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" qemu_clock_get_main_loop_timerlist and timerlist_get_clock have been unused since they were originally added in ff83c66ecc ("aio / timers: Split QEMUClock into QEMUClock and QEMUTimerLi= st") Remove them. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Bernhard Beschow --- include/qemu/timer.h | 21 --------------------- util/qemu-timer.c | 10 ---------- 2 files changed, 31 deletions(-) diff --git a/include/qemu/timer.h b/include/qemu/timer.h index fa56ec9481..cc167bd825 100644 --- a/include/qemu/timer.h +++ b/include/qemu/timer.h @@ -190,16 +190,6 @@ bool qemu_clock_use_for_deadline(QEMUClockType type); */ int64_t qemu_clock_deadline_ns_all(QEMUClockType type, int attr_mask); =20 -/** - * qemu_clock_get_main_loop_timerlist: - * @type: the clock type - * - * Return the default timer list associated with a clock. - * - * Returns: the default timer list - */ -QEMUTimerList *qemu_clock_get_main_loop_timerlist(QEMUClockType type); - /** * qemu_clock_nofify: * @type: the clock type @@ -326,17 +316,6 @@ bool timerlist_expired(QEMUTimerList *timer_list); */ int64_t timerlist_deadline_ns(QEMUTimerList *timer_list); =20 -/** - * timerlist_get_clock: - * @timer_list: the timer list to operate on - * - * Determine the clock type associated with a timer list. - * - * Returns: the clock type associated with the - * timer list. - */ -QEMUClockType timerlist_get_clock(QEMUTimerList *timer_list); - /** * timerlist_run_timers: * @timer_list: the timer list to use diff --git a/util/qemu-timer.c b/util/qemu-timer.c index 213114be68..df9327657a 100644 --- a/util/qemu-timer.c +++ b/util/qemu-timer.c @@ -286,16 +286,6 @@ int64_t qemu_clock_deadline_ns_all(QEMUClockType type,= int attr_mask) return deadline; } =20 -QEMUClockType timerlist_get_clock(QEMUTimerList *timer_list) -{ - return timer_list->clock->type; -} - -QEMUTimerList *qemu_clock_get_main_loop_timerlist(QEMUClockType type) -{ - return main_loop_tlg.tl[type]; -} - void timerlist_notify(QEMUTimerList *timer_list) { if (timer_list->notify_cb) { --=20 2.46.1