]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRIGGER/AliTrigConnector.cxx
Fixes for coverity.
[u/mrichter/AliRoot.git] / TRIGGER / AliTrigConnector.cxx
index e91df709cdecfba2b27004cd0d3a30ee2d56cf6f..39eb51ea77f3351298655ff117b3f1a5a2dcc182 100644 (file)
 
 ClassImp(AliTrigConnector)
 
-//______________________________________________________________________________
-AliTrigConnector::AliTrigConnector(const AliTrigConnector &other)
-                 :TNamed(other),
-                  fFeeder(other.fFeeder),
-                  fOutput(other.fOutput),
-                  fNclients(other.fNclients),
-                  fArraySize(other.fArraySize),
-                  fInputs(0),
-                  fDevices(0)
-{
-// Copy ctor.
-  if (fArraySize && other.fInputs) {
-    fInputs = new Int_t[fArraySize];
-    memcpy(fInputs, other.fInputs, fNclients*sizeof(Int_t));
-    fDevices = new TObjArray(fArraySize);
-    for (Int_t i=0; i<fNclients; i++) fDevices->Add(other.fDevices->At(i));
-  }   
-}                        
-
 //______________________________________________________________________________
 AliTrigConnector::~AliTrigConnector()
 {
@@ -60,27 +41,6 @@ AliTrigConnector::~AliTrigConnector()
   if (fDevices) delete fDevices;
 }
 
-//______________________________________________________________________________
-AliTrigConnector& AliTrigConnector::operator=(const AliTrigConnector &other)
-{
-// Assignment
-  if (&other == this) return *this;
-  TNamed::operator=(other);
-  fFeeder = other.fFeeder;
-  fOutput = other.fOutput;
-  fNclients = other.fNclients;
-  fArraySize = other.fArraySize;
-  fInputs = 0;
-  fDevices = 0;
-  if (fArraySize && other.fInputs) {
-    fInputs = new Int_t[fArraySize];
-    memcpy(fInputs, other.fInputs, fNclients*sizeof(Int_t));
-    fDevices = new TObjArray(fArraySize);
-    for (Int_t i=0; i<fNclients; i++) fDevices->Add(other.fDevices->At(i));
-  }     
-  return *this;
-}
-
 //______________________________________________________________________________
 void AliTrigConnector::Connect(AliTrigDevice *client, Int_t input)
 {