Skip to content

Commit

Permalink
remove node-lib-exec
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihaoSAR committed Aug 2, 2021
1 parent 5e5d3f5 commit ba0d2f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
12 changes: 0 additions & 12 deletions src/renderer/logic/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Logger from '../../libs/logger'
import Auth from './utils/Auth'
import AesUtil from './AesUtil'
import Uploader from './uploader'
import getEnvironment from './utils/libinxt'
import Sync from './sync'
import Tree from './tree'
import fs from 'fs'
Expand Down Expand Up @@ -195,16 +194,6 @@ async function removeFileEntry(
})
}

function restoreFile(fileObj) {
return getEnvironment().then(storj => {
return new Promise((resolve, reject) => {
Uploader.uploadFile(storj, fileObj.fullpath)
.then(() => resolve())
.catch(reject)
})
})
}

async function sincronizeCloudFile() {
var select = await Database.dbFind(Database.dbFiles, {})
const user = await Database.Get('xUser')
Expand Down Expand Up @@ -1091,7 +1080,6 @@ export default {
createFileEntry,
sincronizeLocalFile,
sincronizeCloudFile,
restoreFile,
removeFileEntry,
sincronizeFile,
setEnsureMode
Expand Down
33 changes: 0 additions & 33 deletions src/renderer/logic/utils/libinxt.js

This file was deleted.

0 comments on commit ba0d2f0

Please sign in to comment.