Skip to content

Remove unused methods and constructors across various classes - #1751

Draft
CaiJimmy wants to merge 7 commits into
masterfrom
jimmy/remove-unused
Draft

Remove unused methods and constructors across various classes#1751
CaiJimmy wants to merge 7 commits into
masterfrom
jimmy/remove-unused

Conversation

@CaiJimmy

@CaiJimmy CaiJimmy commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

There are still many unused classes and exceptions in the codebase that I did not touch, just in case.

Unused classes:

  • TypeIndependentNodeVisitor
  • EmptyNamespaceURIForPrefixedBindingException
  • InvalidExpressionClassification
  • IsStaticallyUnexpectedType
  • MLNotADataFrameException
  • ModuleDeclarationException
  • NoNativeQueryException
  • SparkRuntimeException
  • StringOfJSONiqItemException
  • TransformBadCopySourceException
  • UnidentifiedErrorException
  • XMLUnsupportedException

CaiJimmy added 3 commits July 28, 2026 11:52
- Removed clearUserDefinedFunctions method from NamedFunctions.
- Eliminated default constructor from StaticContext, VariableValues, and several item classes (e.g., MapEntryItem, SequenceArrayItem).
- Deleted unused methods such as getQName from NameTest, getValue from DecimalItem, and others from various classes.
- Cleaned up TryCatchExpression and TryCatchStatement by removing catchesAll and related methods.
- Removed unnecessary getters and setters in Facets and other item types.
- Streamlined code by removing redundant methods in runtime iterators and expression classes.
@CaiJimmy
CaiJimmy marked this pull request as ready for review July 28, 2026 10:15
@CaiJimmy
CaiJimmy requested a review from ghislainfourny as a code owner July 28, 2026 10:15
@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown

QT3 Test Results - Parser: jsoniq

Regression baseline: run 30350523771

🎉 No regressions found for this build.

Summary of passed tests for jsoniq
Test Suite Passing Failing Errors Skipped Total
app 1983 39 120 15 2157
array 207 0 1 1 209
fn 9911 480 219 525 11135
map 220 0 0 0 220
math 149 0 0 0 149
misc 698 73 32 68 871
op 4119 72 103 72 4366
prod 9828 547 409 1423 12207
ser 321 21 1 0 343
xs 147 6 0 11 164
Total 27583 1238 885 2115 31821

Full analysis report: see analysis-jsoniq in artifacts.

Download detailed test results

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown

QT3 Test Results - Parser: xquery

Regression baseline: run 30350523771

🎉 No regressions found for this build.

Summary of passed tests for xquery
Test Suite Passing Failing Errors Skipped Total
app 2023 38 89 7 2157
array 207 0 1 1 209
fn 9965 451 221 498 11135
map 220 0 0 0 220
math 149 0 0 0 149
misc 720 64 27 60 871
op 4242 23 60 41 4366
prod 10583 432 346 846 12207
ser 343 0 0 0 343
xs 153 0 0 11 164
Total 28605 1008 744 1464 31821

Full analysis report: see analysis-xquery in artifacts.

Download detailed test results

@CaiJimmy
CaiJimmy marked this pull request as draft July 28, 2026 10:44
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.

1 participant