Remove unused delegation Packages::PackageFile#debian_file_type

Summary

Removes the unused delegation Packages::PackageFile#debian_file_type from app/models/packages/package_file.rb.

The method was generated by the multi-method delegate :file_type, :dsc?, :component, :architecture, :fields, to: :debian_file_metadatum, prefix: :debian declaration. With prefix: :debian, :file_type generated the public method debian_file_type. Only :file_type is removed; the four sibling delegations on the same line (debian_dsc?, debian_component, debian_architecture, debian_fields) remain, as they are all still in use.

Related to #542966 (closed)

Verification

This delegation was verified as unused by:

  • keela --type delegations flagged it as unused
  • Grep search found no callers of the generated method debian_file_type (only the unrelated with_debian_file_type scope matches)
  • No metaprogramming patterns reference it (send/public_send/:debian_file_type/string refs all checked)
  • prefix: :debian accounted for — verified the generated name, not the raw :file_type
  • No GraphQL, serializer, or API references; not a Rails convention method

Cascade Removals

None - this was a standalone removal. The sibling delegations on the same line were confirmed in use and left intact.

Metrics

Source File Complexity (flog)

Metric Before After Improvement
File flog total 302.8 302.8 0.0 (0%)
Delegation flog score N/A (macro symbol, unscored) N/A 0.0 removed

Spec File Complexity (flog)

Metric Before After Improvement
Spec file flog total N/A N/A 0.0 (0%)
Spec block flog score N/A (no spec covered this delegation) N/A 0.0 removed

Combined Flog Summary

File Flog Removed
app/models/packages/package_file.rb 0.0
(no spec file) 0.0
Total 0.0

Test Suite Impact

  • Specs removed: 0 examples (no spec covered debian_file_type)
  • Spec file: N/A
  • Time saved per run: 0.00 seconds

Estimated CI Savings

Estimate Pipelines/Month Time Saved Cost Saved/Month Cost Saved/Year
Pessimistic 15,000 0.00 hrs/month $0.00 $0.00
Moderate 30,000 0.00 hrs/month $0.00 $0.00
Optimistic 50,000 0.00 hrs/month $0.00 $0.00

Based on 0.00 seconds saved per pipeline × $0.03/minute (large runners: 3x cost factor on $10/1000 base minutes). This delegation had no dedicated spec coverage, so there is no measurable CI time savings; the value is code clarity and reduced dead API surface.

Files Modified

  • app/models/packages/package_file.rb (:file_type removed from delegate line - 1 line changed)
  • scripts/lint/keela_baseline.yml (entry removed - 1 line)
  • Related to #542966 (closed) (Improve unused code removal workflow)
  • Part of dead code cleanup effort
  • Delegation was listed in scripts/lint/keela_baseline.yml

Merge request reports

Loading
Loading