grime removal: useless includes and code

This commit is contained in:
Pawel "l0ner" Soltys 2015-01-04 18:51:43 +01:00
parent 26e89f95fa
commit 7a9209e243
2 changed files with 1 additions and 8 deletions

@ -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 );

@ -15,12 +15,9 @@
* */
#include <cstring>
#include <fstream>
#include <iostream>
#include <ostream>
#include <sstream>
#include <string>
#include <unistd.h> // sleep
#include <cmath> // for floorf
#include <cstdlib> // EXIT_SUCCESS
// Tmux color lookup tables for the different metrics.