From b9ab3f8a4fe4e804bcbe3a893b628890499ea86e Mon Sep 17 00:00:00 2001 From: Jinhao Date: Mon, 22 Apr 2019 05:51:56 +0800 Subject: [PATCH] remove deprecated code --- include/nana/gui/timer.hpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/include/nana/gui/timer.hpp b/include/nana/gui/timer.hpp index 0bd2973f..699be103 100644 --- a/include/nana/gui/timer.hpp +++ b/include/nana/gui/timer.hpp @@ -40,16 +40,7 @@ namespace nana timer& operator=(timer&&) = delete; public: timer(); -#if 0 //deprecated - [[deprecated("prefer a std::chrono::duration (like std::chrono::milliseconds) over " - "raw integers for durations")]] - timer(unsigned int ms) : timer{} { interval_(ms); } /// Accepts an initial interval in ms - - template /// Accepts an initial interval in any chrono unit - explicit timer(std::chrono::duration const & time) : timer{} { interval(time); } -#else explicit timer(std::chrono::milliseconds ms); -#endif ~timer(); template @@ -63,23 +54,8 @@ namespace nana bool started() const; void stop(); -#if 0 //deprecated - [[deprecated("prefer a std::chrono::duration (like std::chrono::milliseconds) over " - "raw integers for durations")]] - inline void interval(unsigned milliseconds) { interval_(milliseconds); } - - template - inline void interval(std::chrono::duration const & time_interval) ///< Set the duration between calls, accepts std::chrono - { - _m_interval(static_cast(std::chrono::duration_cast(time_interval).count())); - } -#else void interval(std::chrono::milliseconds ms); -#endif -#if 0 //deprecated - unsigned interval() const; -#endif template inline Duration interval() const {