Skip to content

Removed unused common.h and corrected print statement#189

Merged
sai-kaushik-s merged 1 commit into
codenet:mainfrom
Vinuthna-G-1091:Removed_unused_header_common.h
May 9, 2026
Merged

Removed unused common.h and corrected print statement#189
sai-kaushik-s merged 1 commit into
codenet:mainfrom
Vinuthna-G-1091:Removed_unused_header_common.h

Conversation

@Vinuthna-G-1091

Copy link
Copy Markdown
Contributor

Removed an unused header file common.h and cleaned up all references to it in the source files.
Updated the Makefile to remove dependencies on the deleted header.
Corrected a print statement in threads-notv.c file from threads to threads-notv
No functional changes; build verified successfully.

Copilot AI review requested due to automatic review settings March 4, 2026 13:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the unused 02/concurrency/common.h header and updates the small concurrency examples/build rules accordingly, including correcting the usage string in threads-notv.c.

Changes:

  • Removed #include "common.h" from threads.c and threads-notv.c.
  • Deleted 02/concurrency/common.h and updated 02/concurrency/Makefile target dependencies to no longer reference it.
  • Corrected the threads-notv usage message to match the binary name.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
02/concurrency/threads.c Drops unused common.h include.
02/concurrency/threads-notv.c Drops unused common.h include; fixes usage string.
02/concurrency/common.h Deletes unused local timing/spin header.
02/concurrency/Makefile Removes common.h from target prerequisites.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Vinuthna-G-1091 Vinuthna-G-1091 changed the title Removed unused common.h and corrected printstatement Removed unused common.h and corrected print statement Mar 4, 2026
@namanlp namanlp force-pushed the main branch 4 times, most recently from 7ed076d to 443bf42 Compare March 18, 2026 11:45
@sai-kaushik-s sai-kaushik-s merged commit e3cdd05 into codenet:main May 9, 2026
3 of 4 checks passed
@sai-kaushik-s sai-kaushik-s added Spring2026 PR made be Spring 2026 students, possibly for errata participation. Remove Dead Code Removes some dead code from code base labels May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Remove Dead Code Removes some dead code from code base Spring2026 PR made be Spring 2026 students, possibly for errata participation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants