grime removal: useless includes and code
This commit is contained in:
parent
26e89f95fa
commit
7a9209e243
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user