[Git][ghc/ghc][wip/ipe-length] rts: drop unused postString function
Zubin (@wz1000)
gitlab at gitlab.haskell.org
Thu Dec 14 10:28:21 UTC 2023
Zubin pushed to branch wip/ipe-length at Glasgow Haskell Compiler / GHC
Commits:
6e03bfdf by Zubin Duggal at 2023-12-14T15:58:13+05:30
rts: drop unused postString function
- - - - -
1 changed file:
- rts/eventlog/EventLog.c
Changes:
=====================================
rts/eventlog/EventLog.c
=====================================
@@ -198,16 +198,6 @@ static inline void postStringLen(EventsBuf *eb, const char *buf, StgWord len)
eb->pos++;
}
-/* Post a null-terminated string to the event log.
- * It is the caller's responsibility to ensure that there is
- * enough room for strlen(buf)+1 bytes.
- */
-static inline void postString(EventsBuf *eb, const char *buf)
-{
- const StgWord len = buf ? strlen(buf) : 0;
- postStringLen(eb, buf, len);
-}
-
static inline StgWord64 time_ns(void)
{ return TimeToNS(stat_getElapsedTime()); }
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6e03bfdfdb74de2a8b51d3008233392a6f0a9965
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6e03bfdfdb74de2a8b51d3008233392a6f0a9965
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20231214/dbc41b94/attachment-0001.html>
More information about the ghc-commits
mailing list