Skip to content

gh-134745: Remove dead code in thread_nt.h left by GH-134747 - #154338

Merged
vstinner merged 1 commit into
python:mainfrom
IvyXu420:gh-134745-dead-code
Jul 24, 2026
Merged

vstinner merged 1 commit into
python:mainfrom
IvyXu420:gh-134745-dead-code

Conversation

@IvyXu420

@IvyXu420 IvyXu420 commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor
@vstinner vstinner added the needs backport to 3.15 bugs and security fixes label Jul 24, 2026
@vstinner
vstinner merged commit 9560bd8 into python:main Jul 24, 2026
52 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @ByteFlowing1337 for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Jul 24, 2026

Copy link
Copy Markdown

GH-154655 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Jul 24, 2026
@vstinner

Copy link
Copy Markdown
Member

Ooops, well spotted! It's sad that C compilers don't complain about unused static functions.

I merged your change and backported it to 3.15.

vstinner pushed a commit that referenced this pull request Jul 24, 2026
…GH-154338) (#154655)

gh-134745: Remove dead code in `thread_nt.h` left by gh-134747 (GH-154338)
(cherry picked from commit 9560bd8)

Co-authored-by: Ivy Xu <fakeshadow1337@gmail.com>
@IvyXu420
IvyXu420 deleted the gh-134745-dead-code branch July 25, 2026 04:25
@IvyXu420

Copy link
Copy Markdown
Contributor Author

It's sad that C compilers don't complain about unused static functions.

Yeah, I think it's because this header is only included on Windows when compiling with MSVC, which does not produce such warnings at the default warning level ;)

mbeijen pushed a commit to mbeijen/cpython that referenced this pull request Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants