From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1259481-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1C8651382C5 for <garchives@archives.gentoo.org>; Wed, 10 Mar 2021 19:51:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A660E0863; Wed, 10 Mar 2021 19:51:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3FBA0E0863 for <gentoo-commits@lists.gentoo.org>; Wed, 10 Mar 2021 19:51:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 00035340C8D for <gentoo-commits@lists.gentoo.org>; Wed, 10 Mar 2021 19:51:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7AFB6591 for <gentoo-commits@lists.gentoo.org>; Wed, 10 Mar 2021 19:51:24 +0000 (UTC) From: "Ulrich Müller" <ulm@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" <ulm@gentoo.org> Message-ID: <1615405686.e748fbad1c33ec741d8389464914e373f943644d.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: / X-VCS-Repository: proj/devmanual X-VCS-Files: devbook.xsl X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: e748fbad1c33ec741d8389464914e373f943644d X-VCS-Branch: master Date: Wed, 10 Mar 2021 19:51:24 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 38ba605f-5a80-474a-8578-17501b4f68ad X-Archives-Hash: 3d9012381c2da947fd74fa7b88a26bb5 commit: e748fbad1c33ec741d8389464914e373f943644d Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Wed Mar 10 19:48:06 2021 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Wed Mar 10 19:48:06 2021 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=e748fbad devbook.xsl: Drop unused variable in findNext and findPrevious Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> devbook.xsl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/devbook.xsl b/devbook.xsl index 1dcb55e..ac6ab38 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -714,8 +714,6 @@ </a> </xsl:when> <xsl:otherwise> - <!-- This document's path --> - <xsl:variable name="doc_self" select="concat($self, 'text.xml')"/> <!-- Turn the absolute path into a relative path so we can find ourselves in the parent --> <xsl:variable name="path_self" select="concat(str:tokenize($self, '/')[last()], '/')"/> @@ -810,12 +808,8 @@ </a> </xsl:when> <xsl:otherwise> - <!-- This document's path --> - <xsl:variable name="doc_self" select="concat(/guide/@self, 'text.xml')"/> <!-- Turn the absolute path we have into a relative path so we can find ourselves in the parent --> - <!-- FIXME: Bombproof the doc_self so it still works if it's missing a '/' - on the end --> <xsl:variable name="path_self" select="concat(str:tokenize(/guide/@self, '/')[last()], '/')"/> <xsl:variable name="index_self" select="count(document(concat(/guide/@self, '../text.xml'))/guide/include[@href=$path_self]/preceding-sibling::*)-1"/> <xsl:choose>