summaryrefslogtreecommitdiff
path: root/lib/utils.js
diff options
context:
space:
mode:
authorSheogorath2019-11-20 20:07:35 +0100
committerGitHub2019-11-20 20:07:35 +0100
commit689f5a0a9583fdd774a271a9e6265ee5356d72a0 (patch)
tree754bed08f4724a4bc4f91743f6dfe12f92857c01 /lib/utils.js
parentf894d3c2fa29865288a31cd80cd2a772ce44b330 (diff)
parentb5ccceff59002034fbb089935076f40b8aa16e58 (diff)
Merge pull request #213 from davidmehren/refactor_backend_notes
First steps in refactoring the backend code
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/utils.js b/lib/utils.js
index 1725f6e8..270cbd6a 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -1,6 +1,4 @@
'use strict'
-const fs = require('fs')
-const path = require('path')
exports.isSQLite = function isSQLite (sequelize) {
return sequelize.options.dialect === 'sqlite'
@@ -27,10 +25,3 @@ exports.getImageMimeType = function getImageMimeType (imagePath) {
return undefined
}
}
-
-exports.isRevealTheme = function isRevealTheme (theme) {
- if (fs.existsSync(path.join(__dirname, '..', 'public', 'build', 'reveal.js', 'css', 'theme', theme + '.css'))) {
- return theme
- }
- return undefined
-}