From e7de22dcff9af7b49fc07fc1a9f6c90b40cd39fd Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Mon, 29 Nov 2010 21:08:26 +0000 Subject: [PATCH] fUsingSummands was never used so remove it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39679 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/libs/linprog/Variable.h | 3 --- src/libs/linprog/Summand.cpp | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/headers/libs/linprog/Variable.h b/headers/libs/linprog/Variable.h index d790b334a3..6bb0ff2a5d 100644 --- a/headers/libs/linprog/Variable.h +++ b/headers/libs/linprog/Variable.h @@ -61,8 +61,6 @@ protected: private: LinearSpec* fLS; - BObjectList fUsingSummands; - // All Summands that link to this Variable double fValue; double fMin; double fMax; @@ -72,7 +70,6 @@ private: public: friend class LinearSpec; - friend class Summand; }; diff --git a/src/libs/linprog/Summand.cpp b/src/libs/linprog/Summand.cpp index 7e2dd8cd44..749bc72d9b 100644 --- a/src/libs/linprog/Summand.cpp +++ b/src/libs/linprog/Summand.cpp @@ -62,7 +62,7 @@ Summand::SetVar(Variable* var) */ Summand::~Summand() { - fVar->fUsingSummands.RemoveItem(this); + } @@ -74,5 +74,4 @@ Summand::Summand(double coeff, Variable* var) fCoeff = coeff; fVar = var; fUsedInPenaltyFunction = false; - fVar->fUsingSummands.AddItem(this); }