From fa27862d0c5f5d641a52f0b83812ac3d08c1cc7b Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Fri, 17 Mar 2023 13:09:24 +0100 Subject: search-hit: Remove redundant code The `Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"` warning is shown during build currently. This is caused by the usage of the `G_TYPE_INSTANCE_GET_PRIVATE` macro. However, the statement with this macro doesn't have any effect. This looks to be an oversight in the commit 335eabec. Let's drop the whole statement to get rid of this warning. --- src/nautilus-search-hit.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/nautilus-search-hit.c b/src/nautilus-search-hit.c index 6efaa5613..98ac14261 100644 --- a/src/nautilus-search-hit.c +++ b/src/nautilus-search-hit.c @@ -464,9 +464,6 @@ nautilus_search_hit_class_init (NautilusSearchHitClass *class) static void nautilus_search_hit_init (NautilusSearchHit *hit) { - hit = G_TYPE_INSTANCE_GET_PRIVATE (hit, - NAUTILUS_TYPE_SEARCH_HIT, - NautilusSearchHit); } NautilusSearchHit * -- cgit v1.2.1