Skip to content

Commit

Permalink
Remove empty Log_Msg_* ctors
Browse files Browse the repository at this point in the history
  • Loading branch information
likema committed Jul 14, 2024
1 parent 2431f5e commit c264e59
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 30 deletions.
1 change: 0 additions & 1 deletion ACE/ace/Log_Msg_Android_Logcat.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_Log_Msg_Android_Logcat : public ACE_Log_Msg_Backend
{
public:
ACE_Log_Msg_Android_Logcat () = default;
~ACE_Log_Msg_Android_Logcat () override;

/// Initialize the event logging facility. NOP in this class.
Expand Down
4 changes: 1 addition & 3 deletions ACE/ace/Log_Msg_Backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_Log_Msg_Backend::~ACE_Log_Msg_Backend ()
{
}
ACE_Log_Msg_Backend::~ACE_Log_Msg_Backend () = default;

ACE_END_VERSIONED_NAMESPACE_DECL
8 changes: 0 additions & 8 deletions ACE/ace/Log_Msg_Callback.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
#include "ace/Log_Msg_Callback.h"

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_Log_Msg_Callback::~ACE_Log_Msg_Callback ()
{
}

ACE_END_VERSIONED_NAMESPACE_DECL
5 changes: 1 addition & 4 deletions ACE/ace/Log_Msg_Callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@ class ACE_Log_Record;
class ACE_Export ACE_Log_Msg_Callback
{
public:
/// Default constructor
ACE_Log_Msg_Callback () = default;

/// No-op virtual destructor.
virtual ~ACE_Log_Msg_Callback ();
virtual ~ACE_Log_Msg_Callback () = default;

/// Callback routine. This is called when we want to log a message.
/// Since this routine is pure virtual, it must be overwritten by the
Expand Down
3 changes: 0 additions & 3 deletions ACE/ace/Log_Msg_IPC.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_Log_Msg_IPC : public ACE_Log_Msg_Backend
{
public:
/// Constructor
ACE_Log_Msg_IPC () = default;

/// Destructor
~ACE_Log_Msg_IPC () override;

Expand Down
3 changes: 0 additions & 3 deletions ACE/ace/Log_Msg_NT_Event_Log.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_Log_Msg_NT_Event_Log : public ACE_Log_Msg_Backend
{
public:
/// Constructor
ACE_Log_Msg_NT_Event_Log () = default;

/// Destructor
~ACE_Log_Msg_NT_Event_Log () override;

Expand Down
13 changes: 5 additions & 8 deletions ACE/ace/Log_Msg_UNIX_Syslog.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,8 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_Log_Msg_UNIX_Syslog : public ACE_Log_Msg_Backend
{
public:
/// Constructor
ACE_Log_Msg_UNIX_Syslog () = default;

/// Destructor
virtual ~ACE_Log_Msg_UNIX_Syslog ();
~ACE_Log_Msg_UNIX_Syslog () override;

/// Open a new event log.
/**
Expand All @@ -48,16 +45,16 @@ class ACE_Export ACE_Log_Msg_UNIX_Syslog : public ACE_Log_Msg_Backend
* it is 0 (no name), the application name as
* returned from ACE_Log_Msg::program_name() is used.
*/
virtual int open (const ACE_TCHAR *logger_key);
int open (const ACE_TCHAR *logger_key) override;

/// Reset the backend.
virtual int reset ();
int reset () override;

/// Close the backend completely.
virtual int close ();
int close () override;

/// This is called when we want to log a message.
virtual ssize_t log (ACE_Log_Record &log_record);
ssize_t log (ACE_Log_Record &log_record) override;

private:
/// Convert an ACE_Log_Priority value to the corresponding syslog priority.
Expand Down

0 comments on commit c264e59

Please sign in to comment.