Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EE1F0160C09 for ; Tue, 2 Jan 2018 23:45:46 +0100 (CET) Received: (qmail 48542 invoked by uid 500); 2 Jan 2018 22:45:46 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 48533 invoked by uid 99); 2 Jan 2018 22:45:46 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2018 22:45:46 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 8EF7B84BEE; Tue, 2 Jan 2018 22:45:45 +0000 (UTC) Date: Tue, 02 Jan 2018 22:45:45 +0000 To: "commits@directory.apache.org" Subject: [directory-mavibot] branch single-value updated: Removed dead functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <151493314553.7213.10768070704338726907@gitbox.apache.org> From: elecharny@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: directory-mavibot X-Git-Refname: refs/heads/single-value X-Git-Reftype: branch X-Git-Oldrev: 79566e1b28efbfb5e4eaeb1a44010137e4932f69 X-Git-Newrev: 29a0c3efffd05f3273121b86386ef971830110ac X-Git-Rev: 29a0c3efffd05f3273121b86386ef971830110ac X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Tue, 02 Jan 2018 22:45:47 -0000 This is an automated email from the ASF dual-hosted git repository. elecharny pushed a commit to branch single-value in repository https://gitbox.apache.org/repos/asf/directory-mavibot.git The following commit(s) were added to refs/heads/single-value by this push: new 29a0c3e Removed dead functions 29a0c3e is described below commit 29a0c3efffd05f3273121b86386ef971830110ac Author: Emmanuel Lécharny AuthorDate: Tue Jan 2 23:45:44 2018 +0100 Removed dead functions --- .../directory/mavibot/btree/BTreeFactory.java | 102 --------------------- 1 file changed, 102 deletions(-) diff --git a/mavibot/src/main/java/org/apache/directory/mavibot/btree/BTreeFactory.java b/mavibot/src/main/java/org/apache/directory/mavibot/btree/BTreeFactory.java index c1a365b..a49e20e 100644 --- a/mavibot/src/main/java/org/apache/directory/mavibot/btree/BTreeFactory.java +++ b/mavibot/src/main/java/org/apache/directory/mavibot/btree/BTreeFactory.java @@ -434,69 +434,6 @@ public class BTreeFactory //-------------------------------------------------------------------------------------------- // Utility method //-------------------------------------------------------------------------------------------- - /** - * Includes the intermediate nodes in the path up to and including the right most leaf of the tree - * - * @param btree the b-tree - * @return a LinkedList of all the nodes and the final leaf - */ - /* no qualifier*/static LinkedList> getPathToRightMostLeaf( BTree btree ) - { - LinkedList> stack = new LinkedList>(); - - ParentPos last = new ParentPos<>( btree.getRootPage(), btree.getRootPage().getPageNbElems() ); - stack.push( last ); - - if ( btree.getRootPage().isLeaf() ) - { - Page leaf = btree.getRootPage(); - //ValueHolder valueHolder = ( ( Leaf ) leaf ).getValue( last.pos ); - } - else - { - Page node = btree.getRootPage(); - - while ( true ) - { - //Page p = transaction.getPage( btreeInfo, ( ( AbstractPage )parentPos.page ).children[parentPos.pos] ); - Page p = ( ( AbstractPage ) node ).getPage( node.getPageNbElems() ); - - last = new ParentPos<>( p, p.getPageNbElems() ); - stack.push( last ); - - if ( p.isLeaf() ) - { - Page leaf = last.page; - //ValueHolder valueHolder = ( ( Leaf ) leaf ).getValue( last.pos ); - break; - } - } - } - - return stack; - } - - - //-------------------------------------------------------------------------------------------- - // Persisted b-tree methods - //-------------------------------------------------------------------------------------------- - /** - * Set the rootPage offset of the b-tree - * - * @param btree The b-tree to update - * @param rootPageOffset The rootPageOffset to set - */ - /* no qualifier*/static void setRootPageOffset( BTree btree, long rootPageOffset ) - { - if ( btree instanceof BTree ) - { - btree.getBtreeHeader().setRootPageOffset( rootPageOffset ); - } - else - { - throw new IllegalArgumentException( "The b-tree must be a PersistedBTree" ); - } - } /** @@ -531,43 +468,4 @@ public class BTreeFactory KeyHolder keyHolder = new KeyHolder<>( btreeInfo.getKeySerializer(), buffer ); ( ( AbstractPage ) page ).setKey( pos, keyHolder ); } - - - /** - * Includes the intermediate nodes in the path up to and including the left most leaf of the tree - * - * @param btree The b-tree to process - * @return a LinkedList of all the nodes and the final leaf - */ - /* no qualifier*/static LinkedList> getPathToLeftMostLeaf( BTree btree ) - { - if ( btree instanceof BTree ) - { - LinkedList> stack = new LinkedList>(); - - ParentPos first = new ParentPos( btree.getRootPage(), 0 ); - stack.push( first ); - - Page node = btree.getRootPage(); - - while ( true ) - { - Page page = ( ( AbstractPage ) node ).getPage( 0 ); - - first = new ParentPos( page, 0 ); - stack.push( first ); - - if ( page.isLeaf() ) - { - break; - } - } - - return stack; - } - else - { - throw new IllegalArgumentException( "The b-tree must be a PersistedBTree" ); - } - } } -- To stop receiving notification emails like this one, please contact ['"commits@directory.apache.org" '].