aboutsummaryrefslogtreecommitdiff
path: root/src/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/utils.js b/src/utils.js
index f2d1dc1..4dc3458 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -1,7 +1,4 @@
-var fs = require('fs');
-
module.exports = {
-
// Take some solfege input and normalize it
normalize: function(str) {
var tokens = str.toLowerCase().split(/\s+/);
@@ -80,27 +77,5 @@ module.exports = {
}
return ret.trim();
- },
-
- // Initialize the SQL database
- initializeDatabase: function(db, done) {
-
- // Fetch the SQL we need to run
- fs.readFile('../db/schema.sql', function(err, sql) {
- if (err) {
- return console.error('Error reading SQL from file', err);
- }
-
- // Execute the query
- db.query(sql, function(err, result) {
-
- if (err) {
- console.error('Error executing SQL query', err);
- }
-
- // Run the callback
- done();
- });
- });
}
};