rts: drop unused 'traceEventThreadRunnable'
authorSergei Trofimovich <siarheit@google.com>
Sun, 7 Feb 2016 18:16:10 +0000 (18:16 +0000)
committerSergei Trofimovich <siarheit@google.com>
Sun, 7 Feb 2016 20:28:00 +0000 (20:28 +0000)
Not used since:

    commit f361281c89fbce42865d8b8b27b0957205366186
    Author: Simon Marlow <marlowsd@gmail.com>
    Date:   Wed Dec 7 11:32:35 2011 +0000

        Do not emit the THREAD_RUNNABLE event; it has no useful semantic content

Noticed by uselex.rb:
    traceEventThreadRunnable: [R]: exported from:
        ./rts/dist/build/Inlines.o

Signed-off-by: Sergei Trofimovich <siarheit@google.com>
rts/Trace.h

index 2c11a9f..e0d6f20 100644 (file)
@@ -517,17 +517,6 @@ INLINE_HEADER void traceEventStopThread(Capability          *cap    STG_UNUSED,
                      (EventThreadStatus)status, (EventThreadID)info);
 }
 
-// needs to be EXTERN_INLINE as it is used in another EXTERN_INLINE function
-EXTERN_INLINE void traceEventThreadRunnable(Capability *cap STG_UNUSED,
-                                            StgTSO     *tso STG_UNUSED);
-
-EXTERN_INLINE void traceEventThreadRunnable(Capability *cap STG_UNUSED,
-                                            StgTSO     *tso STG_UNUSED)
-{
-    traceSchedEvent(cap, EVENT_THREAD_RUNNABLE, tso, 0);
-    dtraceThreadRunnable((EventCapNo)cap->no, (EventThreadID)tso->id);
-}
-
 INLINE_HEADER void traceEventMigrateThread(Capability *cap     STG_UNUSED,
                                            StgTSO     *tso     STG_UNUSED,
                                            nat         new_cap STG_UNUSED)