Commit 2f7f3cb8 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Minor cleanups

parent bbbcb51b
......@@ -413,7 +413,6 @@ void ContributorRepository::removeCourse(std::shared_ptr<ICourse> course)
emit courseAboutToBeRemoved(index);
m_courses[course->language()->id()].removeAt(index);
emit courseRemoved();
course->deleteLater();
return;
}
}
......@@ -434,7 +433,6 @@ IEditableCourse * ContributorRepository::createCourse(std::shared_ptr<Language>
course->setId(QUuid::createUuid().toString());
course->setTitle(skeleton->title());
course->setDescription(skeleton->description());
course->setFile(QUrl::fromLocalFile(path));
course->setLanguage(language);
// set skeleton
......@@ -470,7 +468,6 @@ void ContributorRepository::removeSkeleton(SkeletonResource *skeleton)
emit skeletonAboutToBeRemoved(index, index);
m_skeletonResources.removeAt(index);
emit skeletonRemoved();
skeleton->deleteLater();
return;
}
}
......
......@@ -90,11 +90,6 @@ public:
std::shared_ptr<Unit> addUnit(std::unique_ptr<Unit> unit);
/**
* \return true if resource is loaded, otherwise false
*/
bool isOpen() const;
void sync();
QUrl file() const override;
......
......@@ -114,8 +114,6 @@ public:
QUrl file() const override;
void setFile(const QUrl &) {}
Q_INVOKABLE Unit * createUnit();
Q_INVOKABLE Phrase * createPhrase(Unit *unit);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment