diff --git a/src/DetachedSong.cxx b/src/DetachedSong.cxx index 4774cfd23..da5d0f629 100644 --- a/src/DetachedSong.cxx +++ b/src/DetachedSong.cxx @@ -31,11 +31,6 @@ DetachedSong::DetachedSong(const LightSong &other) start_time(other.start_time), end_time(other.end_time) {} -DetachedSong::~DetachedSong() -{ - /* this destructor exists here just so it won't inlined */ -} - bool DetachedSong::IsRemote() const { diff --git a/src/DetachedSong.hxx b/src/DetachedSong.hxx index 5840cd696..2197d0d43 100644 --- a/src/DetachedSong.hxx +++ b/src/DetachedSong.hxx @@ -98,7 +98,8 @@ public: */ explicit DetachedSong(const LightSong &other); - ~DetachedSong(); + gcc_noinline + ~DetachedSong() = default; /* these are declared because the user-defined destructor above prevents them from being generated implicitly */