diff --git a/profanity-filter.js b/profanity-filter.js index a5e694c..f6ecba3 100644 --- a/profanity-filter.js +++ b/profanity-filter.js @@ -129,28 +129,7 @@ class ProfanityFilter { }); } - /** - * Initialize the database table for custom profanity words (legacy sync version) - * @deprecated Use initializeDatabaseAsync() instead - */ - initializeDatabase() { - this.db.serialize(() => { - this.db.run(`CREATE TABLE IF NOT EXISTS profanity_words ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - word TEXT NOT NULL UNIQUE, - severity TEXT DEFAULT 'medium', - category TEXT DEFAULT 'custom', - created_at DATETIME DEFAULT CURRENT_TIMESTAMP, - created_by TEXT DEFAULT 'admin' - )`, (err) => { - if (err) { - console.error('Error creating profanity_words table:', err); - } else { - console.log('Profanity words table initialized successfully'); - } - }); - }); - } +// Removed the deprecated initializeDatabase method as it is unused and no longer necessary. /** * Load custom words from database