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;