From 69cce61cf3461ef3082ca39ea3d180de1ba645a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=90=A7=E7=8E=89?= Date: Mon, 27 May 2019 10:32:14 +0800 Subject: [PATCH] 1.3.6 --- MessageThrottle.podspec | 2 +- MessageThrottle/MessageThrottle.m | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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: {