Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: Remove redundant includes - 1 #15086

Merged
merged 1 commit into from May 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/common/SubProcess.h
Expand Up @@ -17,21 +17,11 @@
#ifndef SUB_PROCESS_H
#define SUB_PROCESS_H

#include <sys/types.h>
#include <sys/wait.h>

#include <signal.h>
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>

#include <sstream>
#include <vector>
#include <iostream>

#include <include/assert.h>
#include <common/errno.h>

Expand Down
1 change: 0 additions & 1 deletion src/common/TextTable.h
Expand Up @@ -17,7 +17,6 @@

#include <vector>
#include <sstream>
#include <string>
#include "include/assert.h"

/**
Expand Down
10 changes: 0 additions & 10 deletions src/common/Thread.cc
Expand Up @@ -19,16 +19,6 @@
#include "common/signal.h"
#include "common/io_priority.h"

#include <dirent.h>
#include <errno.h>
#include <iostream>
#include <pthread.h>

#include <signal.h>
#include <sstream>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#ifdef HAVE_SCHED
#include <sched.h>
#endif
Expand Down
5 changes: 0 additions & 5 deletions src/common/Throttle.cc
@@ -1,12 +1,7 @@
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab

#include <errno.h>
#include <thread>

#include "common/Throttle.h"
#include "common/dout.h"
#include "common/ceph_context.h"
#include "common/perf_counters.h"

#define dout_subsys ceph_subsys_throttle
Expand Down
7 changes: 0 additions & 7 deletions src/common/Throttle.h
Expand Up @@ -4,15 +4,8 @@
#ifndef CEPH_THROTTLE_H
#define CEPH_THROTTLE_H

#include "Mutex.h"
#include "Cond.h"
#include <list>
#include <map>
#include <iostream>
#include <condition_variable>
#include <chrono>
#include "include/atomic.h"
#include "include/Context.h"

class CephContext;
class PerfCounters;
Expand Down
8 changes: 0 additions & 8 deletions src/common/Timer.cc
Expand Up @@ -13,21 +13,13 @@
*/

#include "Cond.h"
#include "Mutex.h"
#include "Thread.h"
#include "Timer.h"

#include "common/config.h"
#include "include/Context.h"

#define dout_subsys ceph_subsys_timer
#undef dout_prefix
#define dout_prefix *_dout << "timer(" << this << ")."

#include <sstream>
#include <signal.h>
#include <sys/time.h>
#include <math.h>


class SafeTimerThread : public Thread {
Expand Down
3 changes: 0 additions & 3 deletions src/common/Timer.h
Expand Up @@ -17,9 +17,6 @@

#include "Cond.h"
#include "Mutex.h"
#include "RWLock.h"

#include <map>

class CephContext;
class Context;
Expand Down
5 changes: 0 additions & 5 deletions src/common/TracepointProvider.h
Expand Up @@ -4,14 +4,9 @@
#ifndef CEPH_TRACEPOINT_PROVIDER_H
#define CEPH_TRACEPOINT_PROVIDER_H

#include "include/int_types.h"
#include "common/ceph_context.h"
#include "common/config_obs.h"
#include "common/Mutex.h"
#include <dlfcn.h>
#include <set>
#include <string>
#include <boost/noncopyable.hpp>

struct md_config_t;

Expand Down
7 changes: 0 additions & 7 deletions src/common/TrackedOp.cc
Expand Up @@ -11,13 +11,6 @@
*/

#include "TrackedOp.h"
#include "common/Formatter.h"
#include <iostream>
#include <vector>
#include "common/debug.h"
#include "common/config.h"
#include "msg/Message.h"
#include "include/assert.h"

#define dout_context cct
#define dout_subsys ceph_subsys_optracker
Expand Down
8 changes: 0 additions & 8 deletions src/common/TrackedOp.h
Expand Up @@ -13,17 +13,9 @@

#ifndef TRACKEDREQUEST_H_
#define TRACKEDREQUEST_H_
#include <sstream>
#include <stdint.h>
#include <boost/intrusive/list.hpp>
#include <atomic>

#include "include/utime.h"
#include "common/Mutex.h"
#include "common/histogram.h"
#include "common/zipkin_trace.h"
#include "msg/Message.h"
#include "include/memory.h"
#include "common/RWLock.h"

#define OPTRACKER_PREALLOC_EVENTS 20
Expand Down
10 changes: 1 addition & 9 deletions src/common/WorkQueue.cc
Expand Up @@ -12,17 +12,9 @@
*
*/

#include "WorkQueue.h"
#include "include/compat.h"

#include <sstream>

#include "include/types.h"
#include "include/utime.h"
#include "common/errno.h"
#include "WorkQueue.h"

#include "common/config.h"
#include "common/HeartbeatMap.h"

#define dout_subsys ceph_subsys_tp
#undef dout_prefix
Expand Down
3 changes: 0 additions & 3 deletions src/common/WorkQueue.h
Expand Up @@ -15,11 +15,8 @@
#ifndef CEPH_WORKQUEUE_H
#define CEPH_WORKQUEUE_H

#include "Mutex.h"
#include "Cond.h"
#include "Thread.h"
#include "include/unordered_map.h"
#include "common/config_obs.h"
#include "common/HeartbeatMap.h"

class CephContext;
Expand Down
2 changes: 0 additions & 2 deletions src/common/str_map.cc
Expand Up @@ -14,8 +14,6 @@
*
*/

#include <errno.h>

#include "include/str_map.h"
#include "include/str_list.h"

Expand Down
2 changes: 0 additions & 2 deletions src/common/strtol.cc
Expand Up @@ -14,9 +14,7 @@

#include "strtol.h"

#include <cerrno>
#include <climits>
#include <cstdlib>
#include <limits>
#include <sstream>

Expand Down
6 changes: 0 additions & 6 deletions src/common/tracked_int_ptr.hpp
Expand Up @@ -15,12 +15,6 @@
#ifndef CEPH_TRACKEDINTPTR_H
#define CEPH_TRACKEDINTPTR_H

#include <map>
#include <list>
#include <memory>
#include <utility>
#include "common/Mutex.h"
#include "common/Cond.h"

template <class T>
class TrackedIntPtr {
Expand Down
2 changes: 0 additions & 2 deletions src/common/util.cc
Expand Up @@ -12,15 +12,13 @@
*
*/

#include <errno.h>
#include <sys/utsname.h>
#include <boost/lexical_cast.hpp>

#include "include/compat.h"
#include "include/util.h"
#include "common/debug.h"
#include "common/errno.h"
#include "common/strtol.h"
#include "common/version.h"

#ifdef HAVE_SYS_VFS_H
Expand Down
1 change: 0 additions & 1 deletion src/common/version.cc
Expand Up @@ -16,7 +16,6 @@
#include "common/version.h"

#include <sstream>
#include <string>

#define _STR(x) #x
#define STRINGIFY(x) _STR(x)
Expand Down
1 change: 0 additions & 1 deletion src/common/zipkin_trace.h
Expand Up @@ -3,7 +3,6 @@
#ifndef COMMON_ZIPKIN_TRACE_H
#define COMMON_ZIPKIN_TRACE_H

#include <string>
#include "acconfig.h"

#ifdef WITH_BLKIN
Expand Down