Remove getBasename() function

This commit is contained in:
Aleksandr Statciuk committed 2021-08-16 12:35:31 +03:00
1 parent 1c8c91450d
commit 867e5f9f11
1 file changed
-4
-4
View File
@@ -5,10 +5,6 @@ const fs = require('fs')
const rootPath = path.resolve(__dirname) + '/../../'
const file = {}
file.getBasename = function (filename) {
return path.basename(filename, path.extname(filename))
}
file.getFilename = function (filename) {
return path.parse(filename).name
}