feat: remove precurrentitemsunload

This commit is contained in:
2025-05-26 09:43:48 +02:00
parent 5cfb556dff
commit c4c901f1d4
2 changed files with 0 additions and 25 deletions

View File

@@ -4,7 +4,6 @@ pub const Tab = struct {
currentItems: locked(?std.ArrayList(Arc(*Item))),
currentLocationChanged: Observable(?*Container),
currentItemsChanged: bool = false,
preCurrentItemsUnload: Observable(*Tab),
threadPool: *std.Thread.Pool,
rootProvider: *RootProvider,
@@ -21,7 +20,6 @@ pub const Tab = struct {
.currentLocation = null,
.threadPool = threadPool,
.rootProvider = rootProvider,
.preCurrentItemsUnload = Observable(*Tab).init(allocator),
};
}
@@ -60,8 +58,6 @@ pub const Tab = struct {
self.currentItems.mutex.lock();
defer self.currentItems.mutex.unlock();
self.preCurrentItemsUnload.notify(self);
const data = self.currentItems.data;
self.currentItems.data = null;
if (data) |currentItems| {