From 695cf08234dc5a9005874b46c0b9bf719d05ec6a Mon Sep 17 00:00:00 2001 From: Jacob Williams Date: Tue, 4 Feb 2025 10:56:52 -0800 Subject: [PATCH] remove unused stuff --- main.ts | 41 +---------------------------------------- styles.css | 8 -------- 2 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 styles.css diff --git a/main.ts b/main.ts index d6fa3b0..122494e 100644 --- a/main.ts +++ b/main.ts @@ -1,29 +1,13 @@ -import { App, Editor, MarkdownView, Plugin, PluginSettingTab, TFile } from 'obsidian'; +import { Editor, MarkdownView, Plugin, TFile } from 'obsidian'; import { CslReference, parseQuote, replaceDoubleQuotes, scoreRefMatches } from 'src/quotes'; -// Remember to rename these classes and interfaces! - -interface PasteQuotePluginSettings { - -} - -const DEFAULT_SETTINGS: PasteQuotePluginSettings = { - -} - export default class PasteQuotePlugin extends Plugin { - settings: PasteQuotePluginSettings; - async onload() { - await this.loadSettings(); - this.addCommand({ id: 'paste-quote', name: 'Paste quote', editorCallback: this.pasteQuote.bind(this), }); - - this.addSettingTab(new PasteQuoteSettingTab(this.app, this)); } async pasteQuote(editor: Editor, view: MarkdownView) { @@ -76,27 +60,4 @@ export default class PasteQuotePlugin extends Plugin { onunload() { } - - async loadSettings() { - this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData()); - } - - async saveSettings() { - await this.saveData(this.settings); - } -} - -class PasteQuoteSettingTab extends PluginSettingTab { - plugin: PasteQuotePlugin; - - constructor(app: App, plugin: PasteQuotePlugin) { - super(app, plugin); - this.plugin = plugin; - } - - display(): void { - const {containerEl} = this; - - containerEl.empty(); - } } diff --git a/styles.css b/styles.css deleted file mode 100644 index 71cc60f..0000000 --- a/styles.css +++ /dev/null @@ -1,8 +0,0 @@ -/* - -This CSS file will be included with your plugin, and -available in the app when your plugin is enabled. - -If your plugin does not need CSS, delete this file. - -*/