diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-30 07:47:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-30 07:47:31 +0300 |
commit | 8bef305b6d6628d9d0cd9b8e8765108842fddc5b (patch) | |
tree | bb364cf7a6e7b1cffe6d3ae6dcd10584097b0354 /source/blender/blenlib/intern/string.c | |
parent | 56ca7f34dd602208880a41de6923fa71ebf83a29 (diff) |
Cleanup: move BLI_timestr to BLI_timecode
Diffstat (limited to 'source/blender/blenlib/intern/string.c')
-rw-r--r-- | source/blender/blenlib/intern/string.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c index 3177bc659b2..f846183b082 100644 --- a/source/blender/blenlib/intern/string.c +++ b/source/blender/blenlib/intern/string.c @@ -701,22 +701,6 @@ int BLI_strcmp_ignore_pad(const char *str1, const char *str2, const char pad) } } -void BLI_timestr(double _time, char *str, size_t maxlen) -{ - /* format 00:00:00.00 (hr:min:sec) string has to be 12 long */ - int hr = ( (int) _time) / (60 * 60); - int min = (((int) _time) / 60 ) % 60; - int sec = ( (int) _time) % 60; - int hun = ( (int) (_time * 100.0)) % 100; - - if (hr) { - BLI_snprintf(str, maxlen, "%.2d:%.2d:%.2d.%.2d", hr, min, sec, hun); - } - else { - BLI_snprintf(str, maxlen, "%.2d:%.2d.%.2d", min, sec, hun); - } -} - /* determine the length of a fixed-size string */ size_t BLI_strnlen(const char *s, const size_t maxlen) { |