Skip to content

Commit

Permalink
utils: remove download helper (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam authored Jan 25, 2025
1 parent 94ce2d8 commit c56613c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
23 changes: 0 additions & 23 deletions src/utils/blob.js

This file was deleted.

10 changes: 4 additions & 6 deletions src/utils/flash.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { qdlDevice } from '@commaai/qdl'
import * as Comlink from 'comlink'

import config from '../config'
import { download } from '../utils/blob'
import { useImageWorker } from '../utils/image'
import { createManifest } from '../utils/manifest'
import { getManifest } from '../utils/manifest'
import { withProgress } from '../utils/progress'

/**
Expand Down Expand Up @@ -124,10 +123,9 @@ export function useQdl() {
}

imageWorker.current?.init()
.then(() => download(config.manifests['release']))
.then(blob => blob.text())
.then(text => {
manifest.current = createManifest(text)
.then(() => getManifest(config.manifests.release))
.then((images) => {
manifest.current = images

// sanity check
if (manifest.current.length === 0) {
Expand Down

0 comments on commit c56613c

Please sign in to comment.