Bug 1178363 - make nsTimerImpl::SetDelayInternal a private method; r=poiru
authorNathan Froyd <froydnj@mozilla.com>
Wed, 17 Jun 2015 21:40:18 -0400
changeset 250618 d8477bd43531caed9c250ae9795f4d91aad24fe3
parent 250617 48f101383a24b33e335107df98022a448ce8dcfa
child 250619 782ec69db4e320dd9e7295732360fef29e3d4fca
push idunknown
push userunknown
push dateunknown
reviewerspoiru
bugs1178363
milestone41.0a1
Bug 1178363 - make nsTimerImpl::SetDelayInternal a private method; r=poiru Nothing outside nsTimerImpl uses it, and with a name like "SetDelayInternal", nothing should.
xpcom/threads/nsTimerImpl.h
--- a/xpcom/threads/nsTimerImpl.h
+++ b/xpcom/threads/nsTimerImpl.h
@@ -43,34 +43,34 @@ public:
 
   friend class TimerThread;
   friend struct TimerAdditionComparator;
 
   void Fire();
   // If a failure is encountered, the reference is returned to the caller
   static already_AddRefed<nsTimerImpl> PostTimerEvent(
     already_AddRefed<nsTimerImpl> aTimerRef);
-  void SetDelayInternal(uint32_t aDelay);
-
   NS_DECL_THREADSAFE_ISUPPORTS
   NS_DECL_NSITIMER
 
   int32_t GetGeneration()
   {
     return mGeneration;
   }
 
 #ifdef MOZ_TASK_TRACER
   void GetTLSTraceInfo();
   mozilla::tasktracer::TracedTaskCommon GetTracedTask();
 #endif
 
   virtual size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const override;
 
 private:
+  void SetDelayInternal(uint32_t aDelay);
+
   enum class CallbackType : uint8_t {
     Unknown = 0,
     Interface = 1,
     Function = 2,
     Observer = 3,
   };
 
   ~nsTimerImpl();