From a0e73468a2a2ea0ed43302abe6f57e865d07294c Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 11 May 2025 22:07:27 +0200 Subject: [PATCH] Speed up blob operations. The current status items are unaffected by any blob operations, so this code is completely unnecessary. --- aft.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/aft.c b/aft.c index dd99a31e..80cd3927 100644 --- a/aft.c +++ b/aft.c @@ -2703,23 +2703,6 @@ static int aft_event_handler(enum afs_events event, struct para_buffer *pb, if (data == current_aft_row) current_aft_row = NULL; return 0; - } - case BLOB_RENAME: - case BLOB_REMOVE: - case BLOB_ADD: { - /* - * These events are rare. We don't bother to check whether the - * current status items are affected and simply recreate them - * whenever an audio file is open. - */ - if (!current_aft_row) - return 0; - ret = get_afhi_of_row(current_aft_row, - &status_item_ls_data.afhi); - if (ret < 0) - return ret; - make_status_items(); - return 0; } default: return 0; } -- 2.39.5