]> Dogcows Code - chaz/openbox/blobdiff - src/util.cc
new timer infrastructure. takes a function pointer for the timeout, with a void*...
[chaz/openbox] / src / util.cc
index 6a6ac417a38aad58493a0809eded1aea7d10c754..7791395220e2e2dd4aaef53113887c5bdfdfd9ef 100644 (file)
@@ -83,29 +83,6 @@ string textPropertyToString(Display *display, XTextProperty& text_prop) {
 }
 
 
-timeval normalizeTimeval(const timeval &tm) {
-  timeval ret = tm;
-
-  while (ret.tv_usec < 0) {
-    if (ret.tv_sec > 0) {
-      --ret.tv_sec;
-      ret.tv_usec += 1000000;
-    } else {
-      ret.tv_usec = 0;
-    }
-  }
-
-  if (ret.tv_usec >= 1000000) {
-    ret.tv_sec += ret.tv_usec / 1000000;
-    ret.tv_usec %= 1000000;
-  }
-
-  if (ret.tv_sec < 0) ret.tv_sec = 0;
-
-  return ret;
-}
-
-
 string itostring(unsigned long i) {
   if (i == 0)
     return string("0");
This page took 0.021194 seconds and 4 git commands to generate.