diff --git a/MessageThrottle.podspec b/MessageThrottle.podspec index 1c3d3ac..52c2642 100644 --- a/MessageThrottle.podspec +++ b/MessageThrottle.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "MessageThrottle" -s.version = "1.3.5" +s.version = "1.3.6" s.summary = "A lightweight Objective-C message throttle and debounce library." s.description = <<-DESC MessageThrottle is a lightweight, simple library for controlling frequency of forwarding Objective-C messages. You can choose to control existing methods per instance or per class. It's an implementation of function throttle/debounce developed with Objective-C runtime. diff --git a/MessageThrottle/MessageThrottle.m b/MessageThrottle/MessageThrottle.m index 50d14c1..48be400 100644 --- a/MessageThrottle/MessageThrottle.m +++ b/MessageThrottle/MessageThrottle.m @@ -599,11 +599,7 @@ static void mt_handleInvocation(NSInvocation *invocation, MTRule *rule) return; } -#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_OSX - NSTimeInterval now = CACurrentMediaTime(); -#else NSTimeInterval now = [[NSDate date] timeIntervalSince1970]; -#endif switch (rule.mode) { case MTPerformModeFirstly: {