cleanup of createTopLevelNote

This commit is contained in:
zadam
2021-03-03 22:27:57 +01:00
parent 73514a63d8
commit 8192b51b8a
3 changed files with 1 additions and 10 deletions

View File

@@ -7,12 +7,6 @@ import ws from "./ws.js";
import treeCache from "./tree_cache.js";
import toastService from "./toast.js";
async function createNewTopLevelNote() {
const hoistedNoteId = hoistedNoteService.getHoistedNoteId();
await createNote(hoistedNoteId);
}
async function createNote(parentNoteId, options = {}) {
options = Object.assign({
activate: true,
@@ -101,6 +95,5 @@ async function duplicateSubtree(noteId, parentNoteId) {
export default {
createNote,
createNewTopLevelNote,
duplicateSubtree
};