IO-1585 Remove unused function.

This commit is contained in:
Patrick Fic
2021-12-24 09:31:50 -08:00
parent 7abc3976e8
commit b67b4c993e

View File

@@ -142,20 +142,3 @@ export function JobsDocumentsDownloadButton({
</>
);
}
const downloadAs = (url, name, onDownloadProgress, onCompleted) => {
cleanAxios
.get(url, {
headers: {
"Content-Type": "application/octet-stream",
},
responseType: "blob",
onDownloadProgress: onDownloadProgress,
})
.then((response) => {
onCompleted && onCompleted();
})
.catch((err) => {
console.log("error", err);
});
};