Closed Bug 1178363 Opened 9 years ago Closed 9 years ago

clean up nsTimerImpl's external interface a bit

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: froydnj, Assigned: froydnj)

Details

Attachments

(5 files, 1 obsolete file)

      No description provided.
Nothing outside nsTimerImpl uses it, and with a name like
"SetDelayInternal", nothing should.
Attachment #8627252 - Flags: review?(birunthan)
This method is only called by nsTimerEvent, which is an implementation
detail of nsTimerImpl.
Attachment #8627253 - Flags: review?(birunthan)
DispatchTracedTask is only called by the timer thread, which is already
able to access private members of nsTimerImpl; there's no reason for
DispatchTracedTask to be public.
Attachment #8627254 - Flags: review?(birunthan)
PostTimerEvent is only called by the timer thread, which is already able
to access private members of nsTimerImpl; there's no reason for
PostTimerEvent to be public.
Attachment #8627255 - Flags: review?(birunthan)
Attachment #8627252 - Flags: review?(birunthan) → review+
Attachment #8627253 - Flags: review?(birunthan) → review+
Comment on attachment 8627254 [details] [diff] [review]
make nsTimerImpl::DispatchTracedTask a private method

Review of attachment 8627254 [details] [diff] [review]:
-----------------------------------------------------------------

This patch seems to have been obsoleted by http://hg.mozilla.org/mozilla-central/rev/ce36885ea160
Attachment #8627254 - Flags: review?(birunthan)
Attachment #8627255 - Flags: review?(birunthan) → review+
Noticed the problem with DispatchTracedTask after rebasing.

GetTracedTask() is only called from nsTimerImpl itself, so it doesn't
need to be public.  GetTLSTraceInfo() is called from the timer thread,
which has access to our private members already.
Attachment #8627254 - Attachment is obsolete: true
Attachment #8627277 - Flags: review?(birunthan)
Attachment #8627277 - Flags: review?(birunthan) → review+
Since GetGeneration() is only called by nsTimerEvent, it doesn't need to
be public.
Attachment #8627291 - Flags: review?(birunthan)
Attachment #8627291 - Flags: review?(birunthan) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: