Thomas Haller
15ce84d489
gobject: clean up loop in g_object_weak_unref_cb()
...
Refactor the function to separate the search and removal logic. Instead
of nesting the removal inside the loop, first search for the matching
entry. If none is found, return early. Otherwise, goto the removal
logic.
This reduces indentation, emphasizes the main path, and improves
readability and maintainability. The change uses the often unfairly
maligned goto for clarity.
2025-11-03 14:23:33 +01:00
..
2025-05-28 16:10:55 +01:00
2023-01-29 12:36:06 +00:00
2023-01-29 12:36:06 +00:00
2025-05-09 20:34:18 +02:00
2023-10-16 23:34:04 +01:00
2023-11-29 13:41:34 +00:00
2023-10-16 23:34:20 +01:00
2025-05-29 23:46:19 +02:00
2022-10-13 20:53:56 -04:00
2025-08-11 21:43:35 +02:00
2023-10-16 23:35:05 +01:00
2025-06-22 23:00:50 +02:00
2025-09-15 13:41:20 +03:00
2024-12-13 23:40:32 +00:00
2024-12-13 23:40:32 +00:00
2024-03-25 15:17:59 -04:00
2024-03-25 15:17:59 -04:00
2025-09-03 21:47:11 +02:00
2022-10-26 18:07:55 +01:00
2022-10-13 20:53:56 -04:00
2023-12-12 17:30:01 +00:00
2025-08-08 23:15:38 +02:00
2022-06-01 12:44:23 +01:00
2023-10-23 10:25:30 +01:00
2024-04-25 12:39:46 +01:00
2025-11-03 14:23:33 +01:00
2023-10-16 23:34:24 +01:00
2018-01-04 22:19:30 +01:00
2023-12-30 00:20:17 +01:00
2024-09-26 22:47:30 +03:00
2025-09-03 21:47:11 +02:00
2025-09-03 21:47:11 +02:00
2025-04-22 22:38:58 +01:00
2022-10-13 20:53:56 -04:00
2025-08-08 23:15:38 +02:00
2025-03-12 11:34:30 +01:00
2025-05-08 19:50:46 +02:00
2023-10-16 23:34:44 +01:00
2025-04-11 23:47:29 +01:00
2022-10-13 20:53:56 -04:00
2025-03-12 08:27:15 +01:00
2025-10-17 04:15:03 +02:00
2025-02-10 10:26:42 +01:00
2025-06-22 23:00:50 +02:00
2023-10-16 23:34:59 +01:00
2023-10-23 11:26:53 +01:00
2023-10-16 23:34:53 +01:00
2025-08-08 11:26:59 +01:00
2025-08-08 11:26:59 +01:00
2025-04-11 23:47:29 +01:00
2023-10-16 23:34:39 +01:00
2023-10-23 13:18:13 +01:00
2024-06-28 14:35:57 +01:00
2024-06-28 14:35:57 +01:00
2023-11-04 10:40:30 +00:00
2016-05-23 10:52:10 -04:00
2025-04-11 23:48:19 +01:00