Commit 60c71ff3 authored by Carola Nitz's avatar Carola Nitz Committed by Felix Paul Kühne

remove function for folder deletion

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 04e7e16e
......@@ -44,6 +44,7 @@
// May be internal
- (NSFetchRequest *)fetchRequestForEntity:(NSString *)entity;
- (id)createObjectForEntity:(NSString *)entity;
- (void)removeObject:(NSManagedObject *)object;
- (NSString *)thumbnailFolderPath;
- (void)applicationWillStart;
......
......@@ -102,6 +102,11 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles";
return [NSEntityDescription insertNewObjectForEntityForName:entity inManagedObjectContext:moc];
}
- (void)removeObject:(NSManagedObject *)object
{
[[self managedObjectContext] deleteObject:object];
}
#pragma mark -
#pragma mark Media Library
- (NSManagedObjectModel *)managedObjectModel
......
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