From 1f25aa27c5cf83afd8e332bd5fe84c88c3dd7ffd Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Mon, 7 Mar 2022 20:49:19 -0600 Subject: Factor out move_it_backward from misc_language.h Relevant commit from old PR: 330df2952cb2863a591158b984c0fb7f652887ac --- contrib/epee/include/misc_language.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'contrib/epee/include/misc_language.h') diff --git a/contrib/epee/include/misc_language.h b/contrib/epee/include/misc_language.h index bf75da23f..ee07bbe8f 100644 --- a/contrib/epee/include/misc_language.h +++ b/contrib/epee/include/misc_language.h @@ -37,15 +37,7 @@ namespace epee namespace misc_utils { - template - t_iterator move_it_backward(t_iterator it, size_t count) - { - while(count--) - it--; - return it; - } - - bool sleep_no_w(long ms ); + bool sleep_no_w(long ms); template T get_mid(const T &a, const T &b) -- cgit v1.2.3