diff --git a/src/util.cpp b/src/util.cpp index c409a2a2b..df0520c5e 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -135,16 +135,6 @@ int confirm4 (const std::string& question) else return 0; } -//////////////////////////////////////////////////////////////////////////////// -void delay (float f) -{ - struct timeval t; - t.tv_sec = (int) f; - t.tv_usec = int ((f - (int)f) * 1000000); - - select (0, NULL, NULL, NULL, &t); -} - //////////////////////////////////////////////////////////////////////////////// // Convert a quantity in seconds to a more readable format. std::string formatBytes (size_t bytes) diff --git a/src/util.h b/src/util.h index 75b466d81..67600c790 100644 --- a/src/util.h +++ b/src/util.h @@ -42,7 +42,6 @@ // util.cpp bool confirm (const std::string&); int confirm4 (const std::string&); -void delay (float); std::string formatBytes (size_t); int autoComplete (const std::string&, const std::vector&, std::vector&, int minimum = 1); diff --git a/test/util.t.cpp b/test/util.t.cpp index 988487ba3..a39be4d11 100644 --- a/test/util.t.cpp +++ b/test/util.t.cpp @@ -44,7 +44,6 @@ int main (int argc, char** argv) // TODO bool confirm (const std::string&); // TODO int confirm4 (const std::string&); - // TODO void delay (float); // std::string formatBytes (size_t); t.is (formatBytes (0), "0 B", "0 -> 0 B");