]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Speed up blob operations.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 11 May 2025 20:07:27 +0000 (22:07 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 12 Jun 2025 23:11:47 +0000 (01:11 +0200)
The current status items are unaffected by any blob operations, so this code
is completely unnecessary.

aft.c

diff --git a/aft.c b/aft.c
index dd99a31ebc295106980318cadf4ccc1c66ffb6b7..80cd39274f5966177378f504b3b317be788ddab8 100644 (file)
--- 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;
        }