remove unused stuff

This commit is contained in:
Jacob Williams 2025-02-04 10:56:52 -08:00
parent 3e7902c26d
commit 695cf08234
2 changed files with 1 additions and 48 deletions

41
main.ts
View file

@ -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();
}
}

View file

@ -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.
*/