Sfoglia il codice sorgente

Removing unused (and wrong) code

Source commit: db60e45ce11924046cbb6bd9afc5a0d2ff762718
Martin Prikryl 2 anni fa
parent
commit
a19b1a7e1a
2 ha cambiato i file con 1 aggiunte e 7 eliminazioni
  1. 0 5
      source/core/NamedObjs.cpp
  2. 1 2
      source/core/NamedObjs.h

+ 0 - 5
source/core/NamedObjs.cpp

@@ -156,11 +156,6 @@ TNamedObject * __fastcall TNamedObjectList::FindByName(const UnicodeString & Nam
   return NULL;
 }
 //---------------------------------------------------------------------------
-void __fastcall TNamedObjectList::SetCount(int value)
-{
-  TObjectList::SetCount(value/*+HiddenCount*/);
-}
-//---------------------------------------------------------------------------
 int __fastcall TNamedObjectList::GetCount()
 {
   DebugAssert(FHiddenCount >= 0);

+ 1 - 2
source/core/NamedObjs.h

@@ -29,7 +29,6 @@ private:
   int __fastcall GetCount();
   int __fastcall GetCountIncludingHidden();
   virtual void __fastcall Notify(void *Ptr, TListNotification Action);
-  void __fastcall SetCount(int value);
 protected:
   int FHiddenCount;
   bool FControlledAdd;
@@ -44,7 +43,7 @@ public:
   int __fastcall Add(TObject * AObject);
   virtual TNamedObject * __fastcall AtObject(Integer Index);
   TNamedObject * __fastcall FindByName(const UnicodeString & Name);
-  __property int Count = { read = GetCount, write = SetCount };
+  __property int Count = { read = GetCount };
   __property int CountIncludingHidden = { read = GetCountIncludingHidden };
 };
 //---------------------------------------------------------------------------