8000 Removed unused code and comments. · arduino/lab-micropython-editor@dc12be4 · GitHub
[go: up one dir, main page]

Skip to content

Commit dc12be4

Browse files
committed
Removed unused code and comments.
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent 0d4d2b4 commit dc12be4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ui/arduino/views/components/file-list.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,7 @@ function generateFileList(source) {
8181
state.itemActionMenu = null
8282
emit('render')
8383
}
84-
// let allowTransfer = false
85-
// if (source === 'disk') {
86-
// return canUpload(isConnected, selectedFiles)
87-
// else {
88-
// return canDownload(isConnected, selectedFiles)
89-
// }
84+
9085
const allowTransfer = source === 'disk' ? canUpload({isConnected, selectedFiles}) : canDownload({isConnected, selectedFiles})
9186
const allowEdit = canEdit({selectedFiles})
9287
const allowRename = selectedFiles.length === 1
@@ -192,7 +187,6 @@ function generateFileList(source) {
192187
}
193188
}
194189

195-
// XXX: Use `source` to filter an array of files with a `source` as proprety
196190
const files = state[`${source}Files`].sort((a, b) => {
197191
const nameA = a.fileName.toUpperCase()
198192
const nameB = b.fileName.toUpperCase()

0 commit comments

Comments
 (0)
0