Skip to content

Manchester | 26-ITP-Sep | Rahana Suleiman | Sprint 3 | Refactoring Dead Code - #1711

Open
rahanasuleiman8-ship-it wants to merge 4 commits into
CodeYourFuture:mainfrom
rahanasuleiman8-ship-it:coursework/sprint-3-dead-code
Open

rahanasuleiman8-ship-it wants to merge 4 commits into
CodeYourFuture:mainfrom
rahanasuleiman8-ship-it:coursework/sprint-3-dead-code

Conversation

@rahanasuleiman8-ship-it

Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

##Task code
CYF-1066

##Changelist

This PR refactors the Sprint 3 codebase by removing unreachable log statements, unused variables, and redundant function definitions from exercise-1.js and exercise-2.js.

@rahanasuleiman8-ship-it rahanasuleiman8-ship-it added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 15, 2026
@webmonch webmonch added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Oct 20, 2026
@webmonch
webmonch self-requested a review October 20, 2026 21:51
Comment thread dead-code/exercise-1.js
Comment thread dead-code/exercise-2.js
// Remove the unused code that does not contribute to the final console log
// The countAndCapitalisePets function should continue to work for any reasonable input it's given, and you shouldn't modify the pets variable.

// const pets = ["parrot", "hamster", "horse", "dog", "hamster", "cat", "hamster"];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same question as in exercise 1.

@webmonch

Copy link
Copy Markdown

Good job! You identified all of the dead code correctly and files product correct output. Just one thing left that I mentioned in previous comments - worth having another look at the commented-out code at the top of each file.

@webmonch webmonch added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants