diff --git a/Tracking/TrkEvent/TrkTrack/TrkTrack/LinkToTrack.h b/Tracking/TrkEvent/TrkTrack/TrkTrack/LinkToTrack.h index cb6f166ad4aec8aade23ee6af193a8487de5581b..168c4741e67348bc05021f1f2d1531c0bca4f6db 100644 --- a/Tracking/TrkEvent/TrkTrack/TrkTrack/LinkToTrack.h +++ b/Tracking/TrkEvent/TrkTrack/TrkTrack/LinkToTrack.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ #ifndef TRKTRACK_LINKTOTRACK_H @@ -27,7 +27,7 @@ namespace Trk LinkToTrack( ElementLink<TrackCollection>& link ); /** default destructor */ - virtual ~LinkToTrack(); + virtual ~LinkToTrack() = default; /** return the track parameters of the track (to which the EL< TrackCollection > points) */ const TrackParameters* parameters() const; @@ -38,8 +38,6 @@ namespace Trk /** method to clone the LinkToTrack object */ LinkToTrack * clone() const ; - /** assignment operator */ - Trk::LinkToTrack& operator= ( const Trk::LinkToTrack& rhs ); // This is here to make sure that the TrackCollection typedef // will make it into the dictionary. typedef TrackCollection TrackCollectionForDict; diff --git a/Tracking/TrkEvent/TrkTrack/src/LinkToTrack.cxx b/Tracking/TrkEvent/TrkTrack/src/LinkToTrack.cxx index 7f125f17fc822b1f960c2a8f433598ef3ed5f10b..96fba2032cbff11d4ed9d1873804c053709e7a27 100644 --- a/Tracking/TrkEvent/TrkTrack/src/LinkToTrack.cxx +++ b/Tracking/TrkEvent/TrkTrack/src/LinkToTrack.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ #include "TrkTrack/LinkToTrack.h" @@ -15,9 +15,6 @@ namespace Trk LinkToTrack::LinkToTrack ( ElementLink<TrackCollection>& link ) : ElementLink<TrackCollection> ( link ) {} - LinkToTrack::~LinkToTrack() - {} - const TrackParameters* LinkToTrack::parameters() const { if ( isValid() ) @@ -34,12 +31,4 @@ namespace Trk return new LinkToTrack ( *this ); } - Trk::LinkToTrack& Trk::LinkToTrack::operator= ( const Trk::LinkToTrack& rhs ) - { - if ( this!=&rhs ) - { - ElementLink<TrackCollection>::operator= ( rhs ); - } - return *this; - } }//end of namespace definitions