diff --git a/NIF_Blocks.cpp b/NIF_Blocks.cpp index 74428b76a2d0742dffc798fdd7dff3f549051118..b6bf432b792b51e5671088e2cc0b4c78b73f7c82 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 5111fc9b35e4d7b07bbc7a7a1e4fa4cac0b98c38..f42cdb7487f59639bea585a89e5081d58b664c8e 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 db1fb686b302f10c50c85c2145b728f33151de7c..74bc868727f782892347e9d93200d873970fe9a5 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.