mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 09:23:18 +00:00
Remove unused code, move logic from .h to their .cpp, clean some things
This commit is contained in:
parent
924e35ecc4
commit
cb6c663833
41 changed files with 492 additions and 978 deletions
|
@ -4,9 +4,9 @@
|
|||
* The license can be found in the LICENSE file or at https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
*/
|
||||
|
||||
#include "core/BaseFileResource.h"
|
||||
#include "core/BaseFileSource.h"
|
||||
#include "core/Mirai.h"
|
||||
#include "core/StdFileResource.h"
|
||||
#include "core/StdFileSource.h"
|
||||
#include "core/TaskItem.h"
|
||||
#include "core/TodoMd.h"
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
@ -18,8 +18,8 @@ TEST_CASE("Saving data")
|
|||
{
|
||||
{
|
||||
mirai::Mirai mirai;
|
||||
auto fileResource = std::make_unique<mirai::StdFileResource>(
|
||||
mirai::BaseFileResourceConstructor{.name = "Testing", .path = "testing.md"}
|
||||
auto fileResource = std::make_unique<mirai::StdFileSource>(
|
||||
mirai::BaseFileSourceConstructor{.name = "Testing", .path = "testing.md"}
|
||||
);
|
||||
mirai.loadResource(std::move(fileResource));
|
||||
|
||||
|
@ -32,8 +32,8 @@ TEST_CASE("Saving data")
|
|||
|
||||
{
|
||||
mirai::Mirai mirai;
|
||||
auto fileResource = std::make_unique<mirai::StdFileResource>(
|
||||
mirai::BaseFileResourceConstructor{.name = "Testing", .path = "testing.md"}
|
||||
auto fileResource = std::make_unique<mirai::StdFileSource>(
|
||||
mirai::BaseFileSourceConstructor{.name = "Testing", .path = "testing.md"}
|
||||
);
|
||||
mirai.loadResource(std::move(fileResource));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue