MXS-2197 Remove most includes of maxscale/log.hh

All cc-files should include maxscale/ccdefs.hh, which includes
maxscale/log.hh. Consequently it need not be included again.
This commit is contained in:
Johan Wikman 2018-12-10 12:35:57 +02:00
parent dc8c2f27f7
commit 0927a0b938
27 changed files with 3 additions and 48 deletions

View File

@ -44,7 +44,6 @@
#include <maxscale/clock.h>
#include <maxscale/limits.h>
#include <maxscale/listener.hh>
#include <maxscale/log.hh>
#include <maxscale/poll.hh>
#include <maxscale/router.hh>
#include <maxscale/server.hh>

View File

@ -23,7 +23,6 @@
#include <maxbase/assert.h>
#include <maxscale/alloc.h>
#include <maxscale/log.hh>
#include <maxscale/pcre2.h>
/**

View File

@ -13,23 +13,13 @@
/**
* @file maxkeys.c - Create the random encryption keys for maxscale
*
* @verbatim
* Revision History
*
* Date Who Description
* 24/07/13 Mark Riddoch Initial implementation
*
* @endverbatim
*/
#include "internal/secrets.h"
#include <maxscale/ccdefs.hh>
#include <getopt.h>
#include <stdio.h>
#include <maxscale/log.hh>
#include <maxscale/paths.h>
#include <maxscale/random.h>
#include "internal/secrets.h"
#ifdef HAVE_GLIBC
struct option options[] =

View File

@ -13,14 +13,6 @@
/**
* @file maxpasswd.c - Implementation of pasword encoding
*
* @verbatim
* Revision History
*
* Date Who Description
* 24/07/13 Mark Riddoch Initial implementation
*
* @endverbatim
*/
#include <maxscale/ccdefs.hh>
@ -31,7 +23,6 @@
#include <getopt.h>
#include <maxscale/paths.h>
#include <maxscale/log.hh>
#include <maxscale/random.h>
#include <maxscale/alloc.h>

View File

@ -17,7 +17,6 @@
#endif
#include <iostream>
#include <maxscale/log.hh>
#include "../config.cc"
using namespace std;

View File

@ -21,7 +21,6 @@
#include <iostream>
#include <sstream>
#include <maxbase/assert.h>
#include <maxscale/log.hh>
using namespace maxscale;
using namespace std;

View File

@ -11,6 +11,7 @@
* Public License.
*/
#include <maxscale/log.hh>
#include <unistd.h>
#include <cstdio>
#include <stdint.h>
@ -20,7 +21,6 @@
#include <pthread.h>
#include <sched.h>
#include <semaphore.h>
#include <maxscale/log.hh>
#include <maxscale/random.h>
using std::cerr;

View File

@ -17,7 +17,6 @@
#include <maxscale/alloc.h>
#include <maxscale/buffer.h>
#include <maxscale/log.hh>
#include <maxscale/modutil.hh>
#include <maxscale/protocol/mysql.hh>

View File

@ -23,7 +23,6 @@
#include <maxscale/alloc.h>
#include <maxscale/clock.h>
#include <maxscale/log.hh>
#include <maxscale/modutil.hh>
#include <maxscale/mysql_utils.hh>
#include <maxscale/protocol/mysql.hh>

View File

@ -15,7 +15,6 @@
#include <maxscale/modutil.hh>
#include <maxscale/protocol/mysql.hh>
#include <maxscale/log.hh>
namespace maxscale
{

View File

@ -32,7 +32,6 @@
#include <maxbase/worker.hh>
#include <maxscale/alloc.h>
#include <maxscale/dcb.hh>
#include <maxscale/log.hh>
#include <maxscale/modulecmd.hh>
#include <maxscale/paths.h>
#include <maxscale/protocol/mysql.hh>

View File

@ -29,7 +29,6 @@
#include <maxscale/router.hh>
#include <maxbase/atomic.h>
#include <maxscale/dcb.hh>
#include <maxscale/log.hh>
#include <maxscale/version.h>
#include <maxscale/alloc.h>
#include <maxscale/buffer.hh>

View File

@ -17,7 +17,6 @@
#include <maxbase/assert.h>
#include <maxscale/alloc.h>
#include <maxscale/log.hh>
/**
* @brief Allocate an Avro table

View File

@ -33,7 +33,6 @@
#include <sys/stat.h>
#include <maxscale/alloc.h>
#include <maxscale/log.hh>
#include <maxscale/maxscale.h>
#include <maxscale/pcre2.h>
#include <maxscale/utils.h>

View File

@ -28,7 +28,6 @@
#include <maxbase/worker.hh>
#include <maxscale/alloc.h>
#include <maxscale/dcb.hh>
#include <maxscale/log.hh>
#include <maxscale/modulecmd.hh>
#include <maxscale/paths.h>
#include <maxscale/protocol/mysql.hh>

View File

@ -22,7 +22,6 @@
#include <stdio.h>
#include <limits.h>
#include <unistd.h>
#include <maxscale/log.hh>
#include <sys/stat.h>
#include <errno.h>
#include <string.h>

View File

@ -18,7 +18,6 @@
#include <stdio.h>
#include <unistd.h>
#include <blr_constants.hh>
#include <maxscale/log.hh>
/**
* @file binlog_common.c - Common binary log code shared between multiple modules

View File

@ -41,7 +41,6 @@
#include <maxscale/config.hh>
#include <maxscale/dcb.hh>
#include <maxscale/housekeeper.h>
#include <maxscale/log.hh>
#include <maxscale/protocol/mysql.hh>
#include <maxscale/router.hh>
#include <maxscale/secrets.h>

View File

@ -35,9 +35,6 @@
#include <maxbase/atomic.h>
#include <maxscale/dcb.hh>
#include <maxscale/log.hh>
/**
* Initialise the cache for this instanceof the binlog router. As a side
* effect also determine the binlog file to read and the position to read

View File

@ -34,7 +34,6 @@
#include <maxbase/atomic.h>
#include <maxscale/dcb.hh>
#include <maxscale/encryption.h>
#include <maxscale/log.hh>
#include <maxscale/paths.h>
#include <maxscale/router.hh>
#include <maxscale/secrets.h>

View File

@ -45,7 +45,6 @@
#include <maxscale/buffer.h>
#include <maxscale/dcb.hh>
#include <maxscale/housekeeper.h>
#include <maxscale/log.hh>
#include <maxscale/protocol/mysql.hh>
#include <maxscale/router.hh>
#include <maxscale/routingworker.hh>

View File

@ -39,7 +39,6 @@
#include <maxscale/clock.h>
#include <maxscale/dcb.hh>
#include <maxscale/housekeeper.h>
#include <maxscale/log.hh>
#include <maxscale/maxscale.h>
#include <maxscale/poll.hh>
#include <maxscale/router.hh>

View File

@ -28,7 +28,6 @@
#include <sys/stat.h>
#include <maxscale/alloc.h>
#include <maxscale/log.hh>
static void printVersion(const char* progname);

View File

@ -35,7 +35,6 @@
#include <maxscale/dcb.hh>
#include <maxscale/housekeeper.h>
#include <time.h>
#include <maxscale/log.hh>
#include <maxscale/paths.h>
#include <maxscale/alloc.h>
#include <maxscale/utils.hh>

View File

@ -34,7 +34,6 @@
#include <maxbase/atomic.h>
#include <maxscale/alloc.h>
#include <maxscale/dcb.hh>
#include <maxscale/log.hh>
#include <maxscale/modinfo.h>
#include <maxscale/poll.hh>
#include <maxscale/router.hh>

View File

@ -33,7 +33,6 @@
#include <maxbase/atomic.h>
#include <maxscale/alloc.h>
#include <maxscale/dcb.hh>
#include <maxscale/log.hh>
#include <maxscale/modinfo.h>
#include <maxscale/poll.hh>
#include <maxscale/router.hh>

View File

@ -43,7 +43,6 @@
#include <maxscale/dcb.hh>
#include <maxscale/filter.hh>
#include <maxscale/housekeeper.h>
#include <maxscale/log.hh>
#include <maxscale/maxscale.h>
#include <maxscale/modulecmd.hh>
#include <maxscale/router.hh>