Loading
Remove unused method ProjectGroupLink#owner_access?
Summary
Removes the unused method ProjectGroupLink#owner_access? from app/models/project_group_link.rb.
Related to #542966 (closed)
Verification
This method was verified as unused by:
-
keela --type methodsflagged it as unused - Grep search found no callers in
app/,lib/,ee/app/,ee/lib/(excluding its own definition and spec) - No metaprogramming patterns reference it (no symbol reference,
send, orpublic_send); no EE prepend override; no API entity or view usage - Not a Rails convention method
- Not a callback
Cascade Removals
None - this was a standalone removal.
Metrics
Source File Complexity (flog)
| Metric | Before | After | Improvement |
|---|---|---|---|
| File flog total | 61.3 | 57.4 | -3.9 (6%) |
| Method flog score | 3.9 | N/A | -3.9 removed |
Spec File Complexity (flog)
| Metric | Before | After | Improvement |
|---|---|---|---|
| Spec file flog total | 202.2 | 181.2 | -21.0 (10%) |
| Spec block flog score | 20.9 | N/A | -20.9 removed |
Combined Flog Summary
| File | Flog Removed |
|---|---|
app/models/project_group_link.rb |
3.9 |
spec/models/project_group_link_spec.rb |
20.9 |
| Total | 3.9 + 20.9 = 24.8 |
Test Suite Impact
- Specs removed: 2 examples
- Spec file:
spec/models/project_group_link_spec.rb - Time saved per run: 2.31 seconds
Estimated CI Savings
| Estimate | Pipelines/Month | Time Saved | Cost Saved/Month | Cost Saved/Year |
|---|---|---|---|---|
| Pessimistic | 15,000 | 9.63 hrs/month | $17.33 | $207.90 |
| Moderate | 30,000 | 19.25 hrs/month | $34.65 | $415.80 |
| Optimistic | 50,000 | 32.08 hrs/month | $57.75 | $693.00 |
Based on 2.31 seconds saved per pipeline × $0.03/minute (large runners: 3x cost factor on $10/1000 base minutes)
Files Modified
app/models/project_group_link.rb(method removed - 4 lines)spec/models/project_group_link_spec.rb(specs removed - 14 lines, 2 examples)scripts/lint/keela_baseline.yml(entry removed - 2 lines)
Related
- Related to #542966 (closed) (Improve unused helper methods workflow)
- Part of dead code cleanup effort
- Method was listed in
scripts/lint/keela_baseline.yml