From 47ad8e956fc7366768d7de4b111628a79789c224 Mon Sep 17 00:00:00 2001
From: Amorilia <amorilia@users.sourceforge.net>
Date: Sat, 11 Feb 2006 03:03:30 +0000
Subject: [PATCH] removed GetParents() again

---
 NIF_Blocks.cpp |  7 -------
 NIF_Blocks.h   |  1 -
 niflib.h       | 20 --------------------
 3 files changed, 28 deletions(-)

diff --git a/NIF_Blocks.cpp b/NIF_Blocks.cpp
index 74428b76..b6bf432b 100644
--- a/NIF_Blocks.cpp
+++ b/NIF_Blocks.cpp
@@ -179,13 +179,6 @@ blk_ref ABlock::GetParent() const {
 	}
 }
 
-list<blk_ref> ABlock::GetParents() const {
-	list<blk_ref> parents;
-	for (vector<IBlock *>::const_iterator it = _parents.begin(); it != _parents.end(); it++ )
-		parents.push_back(blk_ref(*it));
-	return parents;
-}
-
 void ABlock::Read( istream& in, unsigned int version ) {
 
 	//Read Attributes
diff --git a/NIF_Blocks.h b/NIF_Blocks.h
index 5111fc9b..f42cdb74 100644
--- a/NIF_Blocks.h
+++ b/NIF_Blocks.h
@@ -104,7 +104,6 @@ public:
 
 	//Links
 	blk_ref GetParent() const;
-	list<blk_ref> GetParents() const;
 	list<blk_ref> GetLinks() const;
 
 	//Reference Counting
diff --git a/niflib.h b/niflib.h
index db1fb686..74bc8687 100644
--- a/niflib.h
+++ b/niflib.h
@@ -1310,26 +1310,6 @@ public:
 	 */
 	virtual blk_ref GetParent() const = 0;
 
-	/*!
-	 * Used to retrieve all parents that are linked to this block.
-	 * \return A list of block references to the parents that are linked to this block.
-	 * 
-	 * <b>Example:</b> 
-	 * \code
-	 * blk_ref my_block = ReadNifTree("test_in.nif");
-	 * list<blk_ref> parents = my_block->GetParents();
-	 * \endcode
-	 * 
-	 * <b>In Python:</b>
-	 * \code
-	 * my_block = ReadNifTree("test_in.nif")
-	 * parents =  block.GetParents()
-	 * \endcode
-	 * 
-	 * \sa IAttr::Set(blk_ref const &), IAttr::AddLink, IAttr::AddLinks, IAttr::RemoveLinks, IAttr::ClearLinks
-	 */
-	virtual list<blk_ref> GetParents() const = 0;
-
 	/*!
 	 * Summarizes the information contained in this block in English.
 	 * \return A string containing a summary of the information within the block in English.  This is the function that Niflyze calls to generate its analysis, so the output is the same.
-- 
GitLab