refactor: remove 473 lines of dead code across 5 SDK modules
- obligations: unused vendors state/fetch, unreachable filter==='ai' path - tom: unused vendorControlsLoading state, unused bulkUpdateTOMs import - loeschfristen: unused BASELINE_TEMPLATES imports, sdk hook, managingLegalHolds state - vvt: unused apiGetCompleteness/apiGetLibrary, 7 unused VVTLib* interfaces - vendor-compliance: 11 unused context methods, 6 unused selector hooks, ContractUploadData type Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -235,21 +235,6 @@ async function apiInstantiateTemplate(templateId: string): Promise<VVTActivity>
|
||||
return activityFromApi(await res.json())
|
||||
}
|
||||
|
||||
async function apiGetCompleteness(activityId: string): Promise<{ score: number; missing: string[]; warnings: string[] }> {
|
||||
const res = await fetch(`${VVT_API_BASE}/activities/${activityId}/completeness`)
|
||||
if (!res.ok) return { score: 0, missing: [], warnings: [] }
|
||||
return res.json()
|
||||
}
|
||||
|
||||
interface LibraryItem { id: string; label_de: string; description_de?: string; [key: string]: any }
|
||||
|
||||
async function apiGetLibrary(type: string): Promise<LibraryItem[]> {
|
||||
const res = await fetch(`${VVT_API_BASE}/libraries/${type}`)
|
||||
if (!res.ok) return []
|
||||
const data = await res.json()
|
||||
return Array.isArray(data) ? data : []
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// MAIN PAGE
|
||||
// =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user