Better file structure and build system
[sysstatus.git] / statuses / fan.c
diff --git a/statuses/fan.c b/statuses/fan.c
deleted file mode 100644 (file)
index 84cfa90..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <stdio.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include "fan.h"
-
-void status_fan(char *title, char *sysfile)
-{
-  char stline[16];
-  int stfile;
-  ssize_t stlen;
-
-  stlen = fileRead(stline, sizeof(stline), sysfile);
-  if (stlen <= 0) {
-    return;
-  }
-
-  // Read a valid value? Sometimes we get garbage from sysfs...
-  if (stlen > 5) {
-    printf(" ^fg(red)%sERROR ", title);
-    return;
-  }
-
-  fputs(" ^fg(#CCCCCC)", stdout);
-  fputs(title, stdout);
-  fwrite(stline, 1, stlen - 1, stdout);
-  fputs(" rpm ", stdout);
-}