diff --git a/src/lib/stores/childrenData.js b/src/lib/stores/childrenData.js index 74867cce..3bbfe2a0 100644 --- a/src/lib/stores/childrenData.js +++ b/src/lib/stores/childrenData.js @@ -1,3 +1,11 @@ - \ No newline at end of file +import { writable } from 'svelte/store'; + +let childrenlist = {}; + +const childrenData = writable(childrenlist); + +function addChildrenData(data, usertoken) {} + +function removeChildrenData(usertoken) {} + +export { addChildrenData, childrenData, removeChildrenData }; diff --git a/src/lib/stores/contentStore.js b/src/lib/stores/contentStore.js index c38455c4..8d8bb9b7 100644 --- a/src/lib/stores/contentStore.js +++ b/src/lib/stores/contentStore.js @@ -19,8 +19,4 @@ function removeContent(type, key) { }); } -function getContent(type, key) { - return content.value[type][key]; -} - -export { addContent, content, getContent, removeContent }; +export { addContent, content, removeContent }; diff --git a/src/lib/stores/userData.js b/src/lib/stores/userData.js index 74818ea8..53c05238 100644 --- a/src/lib/stores/userData.js +++ b/src/lib/stores/userData.js @@ -27,8 +27,4 @@ async function removeUser(userToken) { }); } -async function getUser(userToken) { - return users.value[userToken]; -} - -export { addUser, getUser, removeUser, users }; +export { addUser, removeUser, users };