Skip to content

Cape Town | 26-ITP-Sept | Vaidah Simenti | Sprint 3 | Refactoring Dead Code - #1727

Open
Vaidah-dev wants to merge 1 commit into
CodeYourFuture:mainfrom
Vaidah-dev:coursework/sprint-3-dead-code-fixed
Open

Vaidah-dev wants to merge 1 commit into
CodeYourFuture:mainfrom
Vaidah-dev:coursework/sprint-3-dead-code-fixed

Conversation

@Vaidah-dev

Copy link
Copy Markdown

Self checklist

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

Task code
CYF-1066

Changelist
Exercise 1

Removed const greetingStr (redundant because the function built a string it never used)
Removed console.log(greetingStr) (unreachable because it is placed after return)
Removed initial testName = "Jerry" (redundant because it is overwritten before use)
Exercise 2

Removed const capitalisedPets (redundant because it is computed but never used)
Removed logPets function (unreachable because it is never called)

@Vaidah-dev Vaidah-dev added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant