mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Code Cleanup
- Removed unused util.cpp delay function.
This commit is contained in:
parent
be104ee7c4
commit
8a31ccabdc
3 changed files with 0 additions and 12 deletions
10
src/util.cpp
10
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)
|
||||
|
|
|
@ -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::string>&, std::vector<std::string>&, int minimum = 1);
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue