Repository navigation
Commit be65bf8
authored
refactor(frontend): remove the unused loadFile output (#8892)
### What changes were proposed in this PR?
Removes the unused `@Output() loadFile` from
`UserDatasetFileRendererComponent`, along with `EventEmitter` and
`Output` from its `@angular/core` import, since nothing else in the file
uses them. **+1/−4 lines.** There is no behaviour change: the component
never emits `loadFile`, and its two hosts (`dataset-detail` and
`model-detail`) bind only inputs on
`<texera-user-dataset-file-renderer>`.
### History
| | |
| --- | --- |
| **Introduced by** | #2413 (2024-02-26), "Introduce Dataset GUI", with
the file renderer itself |
| **Usage removed by** | **never used**. No `(loadFile)` binding or
`.emit` has ever existed |
It has been unused for the nineteen months since it was added.
### Any related issues, documentation, discussions?
Closes #8891
### How was this PR tested?
No new tests; no spec referenced the output.
From `frontend/`:
- `npx ng test --watch=false
--include='**/user-dataset-file-renderer.component.spec.ts'
--include='**/dataset-detail.component.spec.ts'
--include='**/model-detail.component.spec.ts'`: 3 files, 286 tests, all
pass. The last two specs cover the renderer's two hosts.
- `yarn format:ci`: clean.
- `npx ng build`: success.
To re-check:
```
git grep -n -w "loadFile" -- frontend/src # no hits
```
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent a42c573 commit be65bf8
1 file changed
Lines changed: 1 addition & 4 deletions
File tree
- frontend/src/app/dashboard/component/user/user-dataset/user-dataset-explorer/user-dataset-file-renderer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | 169 | | |
173 | 170 | | |
174 | 171 | | |
| |||
0 commit comments