Skip to content

Remove dead code#926

Merged
johnml1135 merged 2 commits into
mainfrom
cleanup_1
Jun 8, 2026
Merged

Remove dead code#926
johnml1135 merged 2 commits into
mainfrom
cleanup_1

Conversation

@mark-sil

@mark-sil mark-sil commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

This removal is part of the changes that were made in the PubSub branch with commit c6ec604.


This change is Reviewable

This removal is part of the changes that were made in the PubSub
branch with commit c6ec604.
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

NUnit Tests

    1 files  ±0      1 suites  ±0   11m 21s ⏱️ + 1m 8s
4 210 tests ±0  4 140 ✅ ±0  70 💤 ±0  0 ❌ ±0 
4 219 runs  ±0  4 149 ✅ ±0  70 💤 ±0  0 ❌ ±0 

Results for commit 58a44b7. ± Comparison against base commit 3f1dc7c.

♻️ This comment has been updated with latest results.

Apply additional cleanup from commit c6ec604.

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

Removes unused/obsolete refresh-related APIs and helper methods across xWorks/LexText/Common, aligning the branch with the PubSub cleanup referenced in the PR description.

Changes:

  • Removed obsolete RefreshAllViews APIs from IApp, IFwMainWnd, and their former implementations/helpers (FwApp, FwXWindow).
  • Removed unused RefreshAfterInvalidObject hook from RecordClerk and its Concordance override, plus other dead code/usings.
  • Minor modernizations to reduce noise (null-conditional calls/disposal, discard unused out values, safer pattern matching cast).

Reviewed changes

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

Show a summary per file
File Description
Src/xWorks/RecordClerk.cs Drops unused RootSites using, simplifies null-check calls, removes unused RefreshAfterInvalidObject hook.
Src/xWorks/FwXWindow.cs Removes unused undo helper and obsolete RefreshAllViews method that forwarded "Refresh" messages.
Src/LexText/Morphology/PhEnvStrRepresentationSlice.cs Removes unused ConstraintFailure local, uses discard and null-conditional dispose for WaitCursor.
Src/LexText/LexTextDll/LexTextApp.cs Removes unused System.ComponentModel using.
Src/LexText/Interlinear/InterlinearTextsRecordClerk.cs Replaces as + cast with is pattern matching for the concordance list refresh.
Src/LexText/Interlinear/ConcordanceControl.cs Removes override of now-removed RefreshAfterInvalidObject.
Src/Common/RootSite/UndoActions.cs Removes stale file header comment lines.
Src/Common/RootSite/IApp.cs Removes RefreshAllViews() from the app interface.
Src/Common/Framework/IFwMainWnd.cs Removes RefreshAllViews() from the main window interface.
Src/Common/Framework/FwApp.cs Removes unused refresh suppression state and the RefreshAllViews() implementation.

@johnml1135 johnml1135 merged commit 4c35c2f into main Jun 8, 2026
7 checks passed
@johnml1135 johnml1135 deleted the cleanup_1 branch June 8, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants