From 7a9209e243ce85ddcf249f6c6376602379eea832 Mon Sep 17 00:00:00 2001 From: "Pawel \"l0ner\" Soltys" Date: Sun, 4 Jan 2015 18:51:43 +0100 Subject: [PATCH] grime removal: useless includes and code --- osx/load.cc | 4 ---- tmux-mem-cpu-load.cpp | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/osx/load.cc b/osx/load.cc index e6b5b96..cea49cc 100644 --- a/osx/load.cc +++ b/osx/load.cc @@ -32,10 +32,6 @@ std::string load_string( bool use_colors = false ) { oss.str( "" ); if( use_colors ) { - std::ifstream stat_file( "/proc/stat" ); - std::string stat_line; - std::getline( stat_file, stat_line ); - // Likely does not work on BSD, but not tested unsigned number_of_cpus = sysconf( _SC_NPROCESSORS_ONLN ); diff --git a/tmux-mem-cpu-load.cpp b/tmux-mem-cpu-load.cpp index a6dd190..41956ec 100644 --- a/tmux-mem-cpu-load.cpp +++ b/tmux-mem-cpu-load.cpp @@ -15,12 +15,9 @@ * */ #include -#include -#include +#include #include #include -#include // sleep -#include // for floorf #include // EXIT_SUCCESS // Tmux color lookup tables for the different metrics.