From 4fdaa4f7da6010be7ea0b86ed8ebc1c98a1a15ae Mon Sep 17 00:00:00 2001 From: Deco Vander Date: Fri, 4 Jul 2025 14:03:14 -0400 Subject: [PATCH] Update profanity-filter.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- profanity-filter.js | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) 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