From b9ffb8f38f6f8ae2fd2a072786cb3c81bfd4901f Mon Sep 17 00:00:00 2001 From: lyskov-ai <277346777+lyskov-ai@users.noreply.github.com> Date: Fri, 15 May 2026 14:43:00 -0400 Subject: [PATCH] Apply Rule of Zero to empty destructors across core/ Move trivially empty or `= default;`-bodied destructors from .cc files to header declarations using `= default`, then remove the now-redundant .cc implementations. Where a destructor was declared `~X() {}` inline in a header, switch it to `~X() = default;` for the same reason. Affected sibling groups: - core/conformation/membrane/* and membrane_geometry/* (8 classes) - core/conformation/parametric/*ValuedParameter (5 classes) - core/io/silent/SilentFileData iterator and const_iterator - core/pack/interaction_graph/RotamerDots family (4 classes) - core/scoring/etable/EtableEvaluator hierarchy (3 classes) - core/scoring/hbonds/graph/HBondInfo (2 classes) - core/scoring/nmr/NMRDummySpinlabelVoxelGrid family (4 classes) - core/scoring/sc/MolecularSurfaceCalculator::Atom - core/energy_methods/SAXSEnergy --- .../conformation/membrane/AqueousPoreParameters.cc | 2 -- .../conformation/membrane/AqueousPoreParameters.hh | 2 +- .../core/conformation/membrane/ImplicitLipidInfo.cc | 2 -- .../core/conformation/membrane/ImplicitLipidInfo.hh | 2 +- .../core/conformation/membrane/MembraneGeometry.cc | 4 ---- .../core/conformation/membrane/MembraneGeometry.hh | 2 +- .../src/core/conformation/membrane/MembraneInfo.cc | 3 --- .../src/core/conformation/membrane/MembraneInfo.hh | 2 +- .../membrane/membrane_geometry/Bicelle.cc | 3 --- .../membrane/membrane_geometry/Bicelle.hh | 2 +- .../membrane/membrane_geometry/DoubleVesicle.cc | 3 --- .../membrane/membrane_geometry/DoubleVesicle.hh | 2 +- .../conformation/membrane/membrane_geometry/Slab.cc | 3 --- .../conformation/membrane/membrane_geometry/Slab.hh | 2 +- .../membrane/membrane_geometry/Vesicle.cc | 3 --- .../membrane/membrane_geometry/Vesicle.hh | 2 +- .../parametric/BooleanValuedParameter.cc | 2 -- .../parametric/BooleanValuedParameter.hh | 2 +- .../conformation/parametric/RealValuedParameter.cc | 2 -- .../conformation/parametric/RealValuedParameter.hh | 2 +- .../parametric/RealVectorValuedParameter.cc | 2 -- .../parametric/RealVectorValuedParameter.hh | 2 +- .../conformation/parametric/SizeValuedParameter.cc | 2 -- .../conformation/parametric/SizeValuedParameter.hh | 2 +- .../parametric/SizeVectorValuedParameter.cc | 2 -- .../parametric/SizeVectorValuedParameter.hh | 2 +- source/src/core/energy_methods/SAXSEnergy.hh | 2 +- source/src/core/io/silent/SilentFileData.hh | 4 ---- .../src/core/pack/interaction_graph/RotamerDots.cc | 13 ------------- .../src/core/pack/interaction_graph/RotamerDots.hh | 8 ++++---- source/src/core/scoring/etable/EtableEnergy.cc | 6 ------ source/src/core/scoring/etable/EtableEnergy.hh | 6 +++--- source/src/core/scoring/hbonds/graph/HBondInfo.hh | 6 ++---- .../core/scoring/nmr/NMRDummySpinlabelVoxelGrid.cc | 12 ------------ .../core/scoring/nmr/NMRDummySpinlabelVoxelGrid.hh | 8 ++++---- .../core/scoring/sc/MolecularSurfaceCalculator.cc | 2 -- .../core/scoring/sc/MolecularSurfaceCalculator.hh | 2 +- 37 files changed, 28 insertions(+), 100 deletions(-) diff --git a/source/src/core/conformation/membrane/AqueousPoreParameters.cc b/source/src/core/conformation/membrane/AqueousPoreParameters.cc index 6b91c0e573c..2b38f22d62f 100644 --- a/source/src/core/conformation/membrane/AqueousPoreParameters.cc +++ b/source/src/core/conformation/membrane/AqueousPoreParameters.cc @@ -99,8 +99,6 @@ AqueousPoreParameters::AqueousPoreParameters( pore_rotation_angle_( pore_rotation_angle ) {} -AqueousPoreParameters::~AqueousPoreParameters() {} - AqueousPoreParameters::AqueousPoreParameters( AqueousPoreParameters const & src ) : utility::VirtualBase( src ), min_center_x_( src.min_center_x_ ), diff --git a/source/src/core/conformation/membrane/AqueousPoreParameters.hh b/source/src/core/conformation/membrane/AqueousPoreParameters.hh index 146fed309a2..149f185f5cb 100644 --- a/source/src/core/conformation/membrane/AqueousPoreParameters.hh +++ b/source/src/core/conformation/membrane/AqueousPoreParameters.hh @@ -70,7 +70,7 @@ public: ); AqueousPoreParameters(AqueousPoreParameters const & src); - ~AqueousPoreParameters() override; + ~AqueousPoreParameters() override = default; AqueousPoreParametersOP clone() const; diff --git a/source/src/core/conformation/membrane/ImplicitLipidInfo.cc b/source/src/core/conformation/membrane/ImplicitLipidInfo.cc index 41033f8257a..37b8368bc33 100644 --- a/source/src/core/conformation/membrane/ImplicitLipidInfo.cc +++ b/source/src/core/conformation/membrane/ImplicitLipidInfo.cc @@ -98,8 +98,6 @@ ImplicitLipidInfo::ImplicitLipidInfo( initialize_implicit_lipid_electricfield_parameters(); } -ImplicitLipidInfo::~ImplicitLipidInfo() {} - ImplicitLipidInfoOP ImplicitLipidInfo::clone() const { return ImplicitLipidInfoOP( new ImplicitLipidInfo( *this ) ); diff --git a/source/src/core/conformation/membrane/ImplicitLipidInfo.hh b/source/src/core/conformation/membrane/ImplicitLipidInfo.hh index ee5b70ee06b..677e2f4b213 100644 --- a/source/src/core/conformation/membrane/ImplicitLipidInfo.hh +++ b/source/src/core/conformation/membrane/ImplicitLipidInfo.hh @@ -63,7 +63,7 @@ public: ); - ~ImplicitLipidInfo() override; + ~ImplicitLipidInfo() override = default; ImplicitLipidInfoOP clone() const; diff --git a/source/src/core/conformation/membrane/MembraneGeometry.cc b/source/src/core/conformation/membrane/MembraneGeometry.cc index b256d173b2b..75590240c35 100644 --- a/source/src/core/conformation/membrane/MembraneGeometry.cc +++ b/source/src/core/conformation/membrane/MembraneGeometry.cc @@ -90,10 +90,6 @@ MembraneGeometry::MembraneGeometry( } -/// @brief Destructor -MembraneGeometry::~MembraneGeometry() {} - - /// @brief Are we accommodating the aqueous pore? bool MembraneGeometry::has_pore() const { diff --git a/source/src/core/conformation/membrane/MembraneGeometry.hh b/source/src/core/conformation/membrane/MembraneGeometry.hh index e3693194ffa..5cdccb11e6f 100644 --- a/source/src/core/conformation/membrane/MembraneGeometry.hh +++ b/source/src/core/conformation/membrane/MembraneGeometry.hh @@ -81,7 +81,7 @@ public: // Constructors & Setup ); /// @brief Destructor - ~MembraneGeometry() override; + ~MembraneGeometry() override = default; virtual MembraneGeometryOP clone() const = 0; diff --git a/source/src/core/conformation/membrane/MembraneInfo.cc b/source/src/core/conformation/membrane/MembraneInfo.cc index d0f656ddbab..e5e0b568b78 100644 --- a/source/src/core/conformation/membrane/MembraneInfo.cc +++ b/source/src/core/conformation/membrane/MembraneInfo.cc @@ -327,9 +327,6 @@ MembraneInfo::operator=( MembraneInfo const & src ) { return *this; } -/// @brief Destructor -MembraneInfo::~MembraneInfo() {} - /// @brief Generate a string representation of information represented by ths MembraneInfo void MembraneInfo::show() const { diff --git a/source/src/core/conformation/membrane/MembraneInfo.hh b/source/src/core/conformation/membrane/MembraneInfo.hh index 7959c533b05..b491c370193 100644 --- a/source/src/core/conformation/membrane/MembraneInfo.hh +++ b/source/src/core/conformation/membrane/MembraneInfo.hh @@ -146,7 +146,7 @@ public: // Constructors & Setup operator=( MembraneInfo const & src ); /// @brief Destructor - ~MembraneInfo() override; + ~MembraneInfo() override = default; /// @brief Generate a string representation of information represented by this MembraneInfo and send it to std::cout virtual void show() const; diff --git a/source/src/core/conformation/membrane/membrane_geometry/Bicelle.cc b/source/src/core/conformation/membrane/membrane_geometry/Bicelle.cc index 2683bbaaa8e..0936dc038dc 100644 --- a/source/src/core/conformation/membrane/membrane_geometry/Bicelle.cc +++ b/source/src/core/conformation/membrane/membrane_geometry/Bicelle.cc @@ -113,9 +113,6 @@ Bicelle::Bicelle( update_outer_radius(); } -/// @brief Destructor -Bicelle::~Bicelle() {} - MembraneGeometryOP Bicelle::clone() const { diff --git a/source/src/core/conformation/membrane/membrane_geometry/Bicelle.hh b/source/src/core/conformation/membrane/membrane_geometry/Bicelle.hh index 43842636f9c..0abf76c744a 100644 --- a/source/src/core/conformation/membrane/membrane_geometry/Bicelle.hh +++ b/source/src/core/conformation/membrane/membrane_geometry/Bicelle.hh @@ -69,7 +69,7 @@ public: // Constructors & Setup Bicelle( core::Real steepness, core::Real thickness, core::Real bicelle_inner_radius, AqueousPoreParametersOP aqueous_pore ); /// @brief Destructor - ~Bicelle() override; + ~Bicelle() override = default; MembraneGeometryOP clone() const override; diff --git a/source/src/core/conformation/membrane/membrane_geometry/DoubleVesicle.cc b/source/src/core/conformation/membrane/membrane_geometry/DoubleVesicle.cc index 9a0480fd6f1..4cd44dbfa20 100644 --- a/source/src/core/conformation/membrane/membrane_geometry/DoubleVesicle.cc +++ b/source/src/core/conformation/membrane/membrane_geometry/DoubleVesicle.cc @@ -105,9 +105,6 @@ DoubleVesicle::DoubleVesicle( } -/// @brief Destructor -DoubleVesicle::~DoubleVesicle() {} - MembraneGeometryOP DoubleVesicle::clone() const { return DoubleVesicleOP( new DoubleVesicle( *this ) ); } diff --git a/source/src/core/conformation/membrane/membrane_geometry/DoubleVesicle.hh b/source/src/core/conformation/membrane/membrane_geometry/DoubleVesicle.hh index 286f0c829fa..1faf6892477 100644 --- a/source/src/core/conformation/membrane/membrane_geometry/DoubleVesicle.hh +++ b/source/src/core/conformation/membrane/membrane_geometry/DoubleVesicle.hh @@ -65,7 +65,7 @@ public: // Constructors & Setup DoubleVesicle( core::Real steepness, core::Real thickness, core::Real inner_radius, core::Real distance, AqueousPoreParametersOP aqueous_pore); /// @brief Destructor - ~DoubleVesicle() override; + ~DoubleVesicle() override = default; MembraneGeometryOP clone() const override; diff --git a/source/src/core/conformation/membrane/membrane_geometry/Slab.cc b/source/src/core/conformation/membrane/membrane_geometry/Slab.cc index ff2bdb1026d..1b2bbf60a20 100644 --- a/source/src/core/conformation/membrane/membrane_geometry/Slab.cc +++ b/source/src/core/conformation/membrane/membrane_geometry/Slab.cc @@ -80,9 +80,6 @@ Slab::Slab( MembraneGeometry( steepness, thickness, aqueous_pore ) {} -/// @brief Destructor -Slab::~Slab() {} - MembraneGeometryOP Slab::clone() const { return SlabOP( new Slab( *this ) ); } diff --git a/source/src/core/conformation/membrane/membrane_geometry/Slab.hh b/source/src/core/conformation/membrane/membrane_geometry/Slab.hh index f470ed62717..3300df8e955 100644 --- a/source/src/core/conformation/membrane/membrane_geometry/Slab.hh +++ b/source/src/core/conformation/membrane/membrane_geometry/Slab.hh @@ -61,7 +61,7 @@ public: // Constructors & Setup Slab( core::Real steepness, core::Real thickness, AqueousPoreParametersOP aqueous_pore ); /// @brief Destructor - ~Slab() override; + ~Slab() override = default; MembraneGeometryOP clone() const override; diff --git a/source/src/core/conformation/membrane/membrane_geometry/Vesicle.cc b/source/src/core/conformation/membrane/membrane_geometry/Vesicle.cc index a94b804e8c3..430dfa352e1 100644 --- a/source/src/core/conformation/membrane/membrane_geometry/Vesicle.cc +++ b/source/src/core/conformation/membrane/membrane_geometry/Vesicle.cc @@ -95,9 +95,6 @@ Vesicle::Vesicle( radius_( radius ) {} -/// @brief Destructor -Vesicle::~Vesicle() {} - MembraneGeometryOP Vesicle::clone() const { return VesicleOP( new Vesicle( *this ) ); } diff --git a/source/src/core/conformation/membrane/membrane_geometry/Vesicle.hh b/source/src/core/conformation/membrane/membrane_geometry/Vesicle.hh index 0b7e5b882a8..b865004c7e1 100644 --- a/source/src/core/conformation/membrane/membrane_geometry/Vesicle.hh +++ b/source/src/core/conformation/membrane/membrane_geometry/Vesicle.hh @@ -63,7 +63,7 @@ public: // Constructors & Setup Vesicle( core::Real steepness, core::Real thickness, core::Real radius, AqueousPoreParametersOP aqueous_pore ); /// @brief Destructor - ~Vesicle() override; + ~Vesicle() override = default; MembraneGeometryOP clone() const override; diff --git a/source/src/core/conformation/parametric/BooleanValuedParameter.cc b/source/src/core/conformation/parametric/BooleanValuedParameter.cc index f60b2ce6d7e..cbb637862a1 100644 --- a/source/src/core/conformation/parametric/BooleanValuedParameter.cc +++ b/source/src/core/conformation/parametric/BooleanValuedParameter.cc @@ -64,8 +64,6 @@ BooleanValuedParameter::BooleanValuedParameter( BooleanValuedParameter const & s { } -BooleanValuedParameter::~BooleanValuedParameter() {} - /// @brief Make a copy of this object ( allocate actual memory for it ) /// ParameterOP diff --git a/source/src/core/conformation/parametric/BooleanValuedParameter.hh b/source/src/core/conformation/parametric/BooleanValuedParameter.hh index ed2b246c22d..8d79c1bddae 100644 --- a/source/src/core/conformation/parametric/BooleanValuedParameter.hh +++ b/source/src/core/conformation/parametric/BooleanValuedParameter.hh @@ -52,7 +52,7 @@ public: BooleanValuedParameter( BooleanValuedParameter const & src ); - ~BooleanValuedParameter() override; + ~BooleanValuedParameter() override = default; /// @brief Make a copy of this object ( allocate actual memory for it ) /// diff --git a/source/src/core/conformation/parametric/RealValuedParameter.cc b/source/src/core/conformation/parametric/RealValuedParameter.cc index c12831df931..d921c7b785c 100644 --- a/source/src/core/conformation/parametric/RealValuedParameter.cc +++ b/source/src/core/conformation/parametric/RealValuedParameter.cc @@ -86,8 +86,6 @@ RealValuedParameter::RealValuedParameter( RealValuedParameter const & src ) : { } -RealValuedParameter::~RealValuedParameter() {} - /// @brief Make a copy of this object ( allocate actual memory for it ) /// diff --git a/source/src/core/conformation/parametric/RealValuedParameter.hh b/source/src/core/conformation/parametric/RealValuedParameter.hh index 7dfd10fd18b..5f9a57dbdd7 100644 --- a/source/src/core/conformation/parametric/RealValuedParameter.hh +++ b/source/src/core/conformation/parametric/RealValuedParameter.hh @@ -65,7 +65,7 @@ public: RealValuedParameter( RealValuedParameter const & src ); - ~RealValuedParameter() override; + ~RealValuedParameter() override = default; /// @brief Make a copy of this object ( allocate actual memory for it ) /// diff --git a/source/src/core/conformation/parametric/RealVectorValuedParameter.cc b/source/src/core/conformation/parametric/RealVectorValuedParameter.cc index fb1222ce295..1de78809569 100644 --- a/source/src/core/conformation/parametric/RealVectorValuedParameter.cc +++ b/source/src/core/conformation/parametric/RealVectorValuedParameter.cc @@ -67,8 +67,6 @@ RealVectorValuedParameter::RealVectorValuedParameter( RealVectorValuedParameter { } -RealVectorValuedParameter::~RealVectorValuedParameter() {} - /// @brief Make a copy of this object ( allocate actual memory for it ) /// diff --git a/source/src/core/conformation/parametric/RealVectorValuedParameter.hh b/source/src/core/conformation/parametric/RealVectorValuedParameter.hh index ccc47db48ff..25f25b4f248 100644 --- a/source/src/core/conformation/parametric/RealVectorValuedParameter.hh +++ b/source/src/core/conformation/parametric/RealVectorValuedParameter.hh @@ -54,7 +54,7 @@ public: RealVectorValuedParameter( RealVectorValuedParameter const & src ); - ~RealVectorValuedParameter() override; + ~RealVectorValuedParameter() override = default; /// @brief Make a copy of this object ( allocate actual memory for it ) /// diff --git a/source/src/core/conformation/parametric/SizeValuedParameter.cc b/source/src/core/conformation/parametric/SizeValuedParameter.cc index d1d05b5552c..03d2308df7e 100644 --- a/source/src/core/conformation/parametric/SizeValuedParameter.cc +++ b/source/src/core/conformation/parametric/SizeValuedParameter.cc @@ -65,8 +65,6 @@ SizeValuedParameter::SizeValuedParameter( SizeValuedParameter const & src ) : { } -SizeValuedParameter::~SizeValuedParameter() {} - /// @brief Make a copy of this object ( allocate actual memory for it ) /// ParameterOP diff --git a/source/src/core/conformation/parametric/SizeValuedParameter.hh b/source/src/core/conformation/parametric/SizeValuedParameter.hh index 88edea26b22..871b66a705a 100644 --- a/source/src/core/conformation/parametric/SizeValuedParameter.hh +++ b/source/src/core/conformation/parametric/SizeValuedParameter.hh @@ -53,7 +53,7 @@ public: SizeValuedParameter( SizeValuedParameter const & src ); - ~SizeValuedParameter() override; + ~SizeValuedParameter() override = default; /// @brief Make a copy of this object ( allocate actual memory for it ) /// diff --git a/source/src/core/conformation/parametric/SizeVectorValuedParameter.cc b/source/src/core/conformation/parametric/SizeVectorValuedParameter.cc index ac4d9c2fb6f..040ab9e7ad3 100644 --- a/source/src/core/conformation/parametric/SizeVectorValuedParameter.cc +++ b/source/src/core/conformation/parametric/SizeVectorValuedParameter.cc @@ -69,8 +69,6 @@ SizeVectorValuedParameter::SizeVectorValuedParameter( SizeVectorValuedParameter { } -SizeVectorValuedParameter::~SizeVectorValuedParameter() {} - /// @brief Make a copy of this object ( allocate actual memory for it ) /// ParameterOP diff --git a/source/src/core/conformation/parametric/SizeVectorValuedParameter.hh b/source/src/core/conformation/parametric/SizeVectorValuedParameter.hh index 0ad69436926..4f156d3ba3f 100644 --- a/source/src/core/conformation/parametric/SizeVectorValuedParameter.hh +++ b/source/src/core/conformation/parametric/SizeVectorValuedParameter.hh @@ -54,7 +54,7 @@ public: SizeVectorValuedParameter( SizeVectorValuedParameter const & src ); - ~SizeVectorValuedParameter() override; + ~SizeVectorValuedParameter() override = default; /// @brief Make a copy of this object ( allocate actual memory for it ) /// diff --git a/source/src/core/energy_methods/SAXSEnergy.hh b/source/src/core/energy_methods/SAXSEnergy.hh index 0fbe14132cc..c35626e5bca 100644 --- a/source/src/core/energy_methods/SAXSEnergy.hh +++ b/source/src/core/energy_methods/SAXSEnergy.hh @@ -53,7 +53,7 @@ public: SAXSEnergy(const std::string &,const utility::vector1 &,const utility::vector1 &, core::scoring::ScoreType, core::scoring::methods::EnergyMethodCreatorOP); - ~SAXSEnergy() override {} + ~SAXSEnergy() override = default; core::scoring::methods::EnergyMethodOP clone() const override { diff --git a/source/src/core/io/silent/SilentFileData.hh b/source/src/core/io/silent/SilentFileData.hh index 85e444b55db..a2991cac918 100644 --- a/source/src/core/io/silent/SilentFileData.hh +++ b/source/src/core/io/silent/SilentFileData.hh @@ -450,8 +450,6 @@ public: it_( s_iter) {} - ~iterator() {} - bool operator==( const iterator& other ) const { return ( it_ == other.it_ ); } @@ -505,8 +503,6 @@ public: it_( s_iter ) {} - ~const_iterator() {} - bool operator==( const const_iterator& other ) { return ( it_ == other.it_ ); } diff --git a/source/src/core/pack/interaction_graph/RotamerDots.cc b/source/src/core/pack/interaction_graph/RotamerDots.cc index 1c4d5e8dd9e..b2cf33e2b06 100644 --- a/source/src/core/pack/interaction_graph/RotamerDots.cc +++ b/source/src/core/pack/interaction_graph/RotamerDots.cc @@ -182,9 +182,6 @@ DotSphere::DotSphere() : zero(); } -/// -DotSphere::~DotSphere() = default; - /// /// @brief /// copy constructor @@ -521,11 +518,6 @@ RotamerDots::RotamerDots( } -/// -RotamerDots::~RotamerDots() { - //TR_RD << "called destructor" << std::endl; -} - /// /// @brief /// copy constructor @@ -1576,9 +1568,6 @@ RotamerDotsCache::RotamerDotsCache( Size num_atoms ) { /// RotamerDotsCache::RotamerDotsCache( RotamerDotsCache const & /*rhs*/ ) = default; -/// -RotamerDotsCache::~RotamerDotsCache() = default; - /// /// @brief /// assignment operator @@ -1682,8 +1671,6 @@ InvRotamerDots::InvRotamerDots( InvRotamerDots const & src ) : radii_( src.radii_ ) {} -InvRotamerDots::~InvRotamerDots() = default; - InvRotamerDots & InvRotamerDots::operator= ( InvRotamerDots const & rhs ) { if ( this != & rhs ) { diff --git a/source/src/core/pack/interaction_graph/RotamerDots.hh b/source/src/core/pack/interaction_graph/RotamerDots.hh index 2321dcb9426..5155bd6ad0b 100644 --- a/source/src/core/pack/interaction_graph/RotamerDots.hh +++ b/source/src/core/pack/interaction_graph/RotamerDots.hh @@ -65,7 +65,7 @@ class DotSphere { public: DotSphere(); - ~DotSphere(); + ~DotSphere() = default; DotSphere( DotSphere const & rhs ); DotSphere & operator= ( DotSphere const & rhs ); bool operator!= ( DotSphere const & rhs ); @@ -139,7 +139,7 @@ class RotamerDots : public utility::VirtualBase { public: RotamerDots(); RotamerDots( conformation::ResidueCOP rotamer, bool exclude_hydrogen_atoms = false, bool use_expanded_polar_atom_radii = false ); - ~RotamerDots() override; + ~RotamerDots() override = default; RotamerDots( RotamerDots const & rhs ); void copy(RotamerDots const & rhs); @@ -334,7 +334,7 @@ public: RotamerDotsCache( core::Size num_atoms ); RotamerDotsCache( RotamerDotsCache const & rhs ); RotamerDotsCache & operator= ( RotamerDotsCache const & rhs ); - ~RotamerDotsCache(); + ~RotamerDotsCache() = default; void resize( core::Size num_atoms ); void zero(); @@ -362,7 +362,7 @@ class InvRotamerDots : public utility::VirtualBase { public: InvRotamerDots(); InvRotamerDots( InvRotamerDots const & src ); - ~InvRotamerDots() override; + ~InvRotamerDots() override = default; InvRotamerDots & operator = ( InvRotamerDots const & rhs ); diff --git a/source/src/core/scoring/etable/EtableEnergy.cc b/source/src/core/scoring/etable/EtableEnergy.cc index 0001d9fc313..2cea9c72cfe 100644 --- a/source/src/core/scoring/etable/EtableEnergy.cc +++ b/source/src/core/scoring/etable/EtableEnergy.cc @@ -356,8 +356,6 @@ EtableEvaluator::EtableEvaluator( Etable const & etable ) : hydrogen_interaction_cutoff2_( etable.hydrogen_interaction_cutoff2() ) {} -EtableEvaluator::~EtableEvaluator() = default; - TableLookupEvaluator::TableLookupEvaluator( Etable const & etable_in ) : @@ -374,8 +372,6 @@ TableLookupEvaluator::TableLookupEvaluator( //dis2_step_( 1.0 / (Real) etable_bins_per_A2_ ) {} -TableLookupEvaluator::~TableLookupEvaluator() = default; - EtableEvaluatorOP TableLookupEvaluator::clone() const { return utility::pointer::make_shared< TableLookupEvaluator >( *this ); @@ -476,8 +472,6 @@ AnalyticEtableEvaluator::AnalyticEtableEvaluator( Etable const & etable ) : safe_max_dis2_( etable.get_safe_max_dis2() ) {} -AnalyticEtableEvaluator::~AnalyticEtableEvaluator() = default; - EtableEvaluatorOP AnalyticEtableEvaluator::clone() const { return utility::pointer::make_shared< AnalyticEtableEvaluator >( *this ); diff --git a/source/src/core/scoring/etable/EtableEnergy.hh b/source/src/core/scoring/etable/EtableEnergy.hh index 66f41bb4b40..ea105abbbe6 100644 --- a/source/src/core/scoring/etable/EtableEnergy.hh +++ b/source/src/core/scoring/etable/EtableEnergy.hh @@ -50,7 +50,7 @@ class EtableEvaluator : public utility::VirtualBase { public: EtableEvaluator( Etable const & etable ); - ~EtableEvaluator() override; + ~EtableEvaluator() override = default; virtual EtableEvaluatorOP clone() const = 0; @@ -216,7 +216,7 @@ class AnalyticEtableEvaluator : public EtableEvaluator { public: AnalyticEtableEvaluator( Etable const & etable ); - ~AnalyticEtableEvaluator() override; + ~AnalyticEtableEvaluator() override = default; EtableEvaluatorOP clone() const override; @@ -507,7 +507,7 @@ class TableLookupEvaluator : public EtableEvaluator { public: TableLookupEvaluator( Etable const & etable_in ); - ~TableLookupEvaluator() override; + ~TableLookupEvaluator() override = default; EtableEvaluatorOP clone() const override; diff --git a/source/src/core/scoring/hbonds/graph/HBondInfo.hh b/source/src/core/scoring/hbonds/graph/HBondInfo.hh index 4fbf4e62356..9129b48681e 100644 --- a/source/src/core/scoring/hbonds/graph/HBondInfo.hh +++ b/source/src/core/scoring/hbonds/graph/HBondInfo.hh @@ -24,9 +24,7 @@ namespace graph { class LKHBondInfo { public: - LKHBondInfo( LKHBondInfo const & ){} - - virtual ~LKHBondInfo(){} + virtual ~LKHBondInfo() = default; public: @@ -74,7 +72,7 @@ public: {} - virtual ~HBondInfo(){} + virtual ~HBondInfo() = default; public: bool first_node_is_donor() const { diff --git a/source/src/core/scoring/nmr/NMRDummySpinlabelVoxelGrid.cc b/source/src/core/scoring/nmr/NMRDummySpinlabelVoxelGrid.cc index eae7093977f..439d593ae5a 100644 --- a/source/src/core/scoring/nmr/NMRDummySpinlabelVoxelGrid.cc +++ b/source/src/core/scoring/nmr/NMRDummySpinlabelVoxelGrid.cc @@ -60,9 +60,6 @@ VoxelGridPoint::VoxelGridPoint( coords_(coords) {} -/// @brief Destructor -VoxelGridPoint::~VoxelGridPoint() {} - /// @brief Type name of this voxel grid point std::string VoxelGridPoint::type() const { @@ -97,9 +94,6 @@ NMRDummySpinlabelAtom::NMRDummySpinlabelAtom( conformer_(&conformer) {} -/// @brief Destructor -NMRDummySpinlabelAtom::~NMRDummySpinlabelAtom() {} - /// @brief Type name of this voxel grid point std::string NMRDummySpinlabelAtom::type() const { @@ -135,9 +129,6 @@ VoxelGridPoint_AA::VoxelGridPoint_AA( residue_(&resi) {} -/// @brief Destructor -VoxelGridPoint_AA::~VoxelGridPoint_AA() {} - /// @brief Type name of this voxel grid point std::string VoxelGridPoint_AA::type() const { @@ -175,9 +166,6 @@ NMRDummySpinlabelVoxelGrid::NMRDummySpinlabelVoxelGrid( SetObjects(points); } -/// @brief Destructor -NMRDummySpinlabelVoxelGrid::~NMRDummySpinlabelVoxelGrid() {} - /// @brief Extract the 3D coordinate of a given object of type VoxelGridPoint. Vector const * NMRDummySpinlabelVoxelGrid::ExtractPosition(VoxelGridPoint const & point) const { diff --git a/source/src/core/scoring/nmr/NMRDummySpinlabelVoxelGrid.hh b/source/src/core/scoring/nmr/NMRDummySpinlabelVoxelGrid.hh index b8c463296be..35807fc9df7 100644 --- a/source/src/core/scoring/nmr/NMRDummySpinlabelVoxelGrid.hh +++ b/source/src/core/scoring/nmr/NMRDummySpinlabelVoxelGrid.hh @@ -56,7 +56,7 @@ public: // Methods ); /// @brief Destructor - ~VoxelGridPoint() override; + ~VoxelGridPoint() override = default; /// @brief Type name of this voxel grid point virtual std::string type() const; @@ -101,7 +101,7 @@ public: // Methods ); /// @brief Destructor - ~NMRDummySpinlabelAtom() override; + ~NMRDummySpinlabelAtom() override = default; /// @brief Type name of this voxel grid point std::string type() const override; @@ -136,7 +136,7 @@ public: // Methods ); /// @brief Destructor - ~VoxelGridPoint_AA() override; + ~VoxelGridPoint_AA() override = default; /// @brief Type name of this voxel grid point std::string type() const override; @@ -169,7 +169,7 @@ public: // Methods ); /// @brief Destructor - ~NMRDummySpinlabelVoxelGrid() override; + ~NMRDummySpinlabelVoxelGrid() override = default; /// @brief Extract the 3D coordinate of a given object of type VoxelGridPoint. Vector const * diff --git a/source/src/core/scoring/sc/MolecularSurfaceCalculator.cc b/source/src/core/scoring/sc/MolecularSurfaceCalculator.cc index bbcb773c5d8..addb76a7831 100644 --- a/source/src/core/scoring/sc/MolecularSurfaceCalculator.cc +++ b/source/src/core/scoring/sc/MolecularSurfaceCalculator.cc @@ -1320,8 +1320,6 @@ Atom::Atom() : numeric::xyzVector < MolecularSurfaceCalculator::ScValue > (0.0) memset(residue, 0, sizeof(residue)); } -Atom::~Atom() = default; - // The End //////////////////////////////////////////////////////////////////////////// diff --git a/source/src/core/scoring/sc/MolecularSurfaceCalculator.hh b/source/src/core/scoring/sc/MolecularSurfaceCalculator.hh index 837a02516f2..f2c23fdc344 100644 --- a/source/src/core/scoring/sc/MolecularSurfaceCalculator.hh +++ b/source/src/core/scoring/sc/MolecularSurfaceCalculator.hh @@ -158,7 +158,7 @@ public: public: Atom(); - ~Atom(); + ~Atom() = default; int operator ==(Atom const &atom2) { //