diff --git a/src/OpenFOAM/containers/Lists/List/List.C b/src/OpenFOAM/containers/Lists/List/List.C index 934fc085f4..ae4a36a805 100644 --- a/src/OpenFOAM/containers/Lists/List/List.C +++ b/src/OpenFOAM/containers/Lists/List/List.C @@ -266,24 +266,6 @@ Foam::List::List(const SLList& lst) } -// Construct as copy of IndirectList -template -Foam::List::List(const IndirectList& lst) -: - UList(NULL, lst.size()) -{ - if (this->size_) - { - this->v_ = new T[this->size_]; - - forAll(*this, i) - { - this->operator[](i) = lst[i]; - } - } -} - - // Construct as copy of UIndirectList template Foam::List::List(const UIndirectList& lst) @@ -517,25 +499,6 @@ void Foam::List::operator=(const SLList& lst) } -// Assignment operator. Takes linear time. -template -void Foam::List::operator=(const IndirectList& lst) -{ - if (lst.size() != this->size_) - { - if (this->v_) delete[] this->v_; - this->v_ = 0; - this->size_ = lst.size(); - if (this->size_) this->v_ = new T[this->size_]; - } - - forAll(*this, i) - { - this->operator[](i) = lst[i]; - } -} - - // Assignment operator. Takes linear time. template void Foam::List::operator=(const UIndirectList& lst) diff --git a/src/OpenFOAM/containers/Lists/List/List.H b/src/OpenFOAM/containers/Lists/List/List.H index 2999e0886e..d51a1f9eef 100644 --- a/src/OpenFOAM/containers/Lists/List/List.H +++ b/src/OpenFOAM/containers/Lists/List/List.H @@ -131,9 +131,6 @@ public: //- Construct as copy of SLList explicit List(const SLList&); - //- Construct as copy of IndirectList - explicit List(const IndirectList&); - //- Construct as copy of UIndirectList explicit List(const UIndirectList&); @@ -219,9 +216,6 @@ public: //- Assignment from SLList operator. Takes linear time. void operator=(const SLList&); - //- Assignment from IndirectList operator. Takes linear time. - void operator=(const IndirectList&); - //- Assignment from UIndirectList operator. Takes linear time. void operator=(const UIndirectList&);