Tracker: Remove adding BeOS trash icons in trash watcher.
* The icons have been removed in 4e38bdba17
which caused a debugger call in the debug build.
This commit is contained in:
@@ -163,16 +163,6 @@ BTrashWatcher::UpdateTrashIcons()
|
||||
if (FSGetTrashDir(&trashDir, volume.Device()) == B_OK) {
|
||||
// pull out the icons for the current trash state from resources
|
||||
// and apply them onto the trash directory node
|
||||
size_t largeSize = 0;
|
||||
size_t smallSize = 0;
|
||||
const void* largeData
|
||||
= GetTrackerResources()->LoadResource('ICON',
|
||||
fTrashFull ? R_TrashFullIcon : R_TrashIcon, &largeSize);
|
||||
|
||||
const void* smallData
|
||||
= GetTrackerResources()->LoadResource('MICN',
|
||||
fTrashFull ? R_TrashFullIcon : R_TrashIcon, &smallSize);
|
||||
|
||||
size_t vectorSize = 0;
|
||||
const void* vectorData = GetTrackerResources()->LoadResource(
|
||||
B_VECTOR_ICON_TYPE,
|
||||
@@ -183,18 +173,6 @@ BTrashWatcher::UpdateTrashIcons()
|
||||
vectorData, vectorSize);
|
||||
} else
|
||||
TRESPASS();
|
||||
|
||||
if (largeData) {
|
||||
trashDir.WriteAttr(kAttrLargeIcon, 'ICON', 0,
|
||||
largeData, largeSize);
|
||||
} else
|
||||
TRESPASS();
|
||||
|
||||
if (smallData) {
|
||||
trashDir.WriteAttr(kAttrMiniIcon, 'MICN', 0,
|
||||
smallData, smallSize);
|
||||
} else
|
||||
TRESPASS();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user