libcc1: inline some simple methods
This changes libcc1 to inline a trivial method and to use the default constructor. libcc1 * connection.hh (~connection): Use default. (print): Inline. * connection.cc (cc1_plugin::connection::~connection) (cc1_plugin::connection::print): Remove definitions.
This commit is contained in:
parent
e1f5252e4d
commit
41f4381648
2 changed files with 4 additions and 11 deletions
|
@ -27,15 +27,6 @@ along with GCC; see the file COPYING3. If not see
|
||||||
#include "connection.hh"
|
#include "connection.hh"
|
||||||
#include "rpc.hh"
|
#include "rpc.hh"
|
||||||
|
|
||||||
cc1_plugin::connection::~connection ()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
cc1_plugin::connection::print (const char *)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
cc1_plugin::status
|
cc1_plugin::status
|
||||||
cc1_plugin::connection::send (char c)
|
cc1_plugin::connection::send (char c)
|
||||||
{
|
{
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace cc1_plugin
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~connection ();
|
virtual ~connection () = default;
|
||||||
|
|
||||||
// Send a single character. This is used to introduce various
|
// Send a single character. This is used to introduce various
|
||||||
// higher-level protocol elements.
|
// higher-level protocol elements.
|
||||||
|
@ -89,7 +89,9 @@ namespace cc1_plugin
|
||||||
m_callbacks.add_callback (name, func);
|
m_callbacks.add_callback (name, func);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void print (const char *);
|
virtual void print (const char *)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue