summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2023-03-17 13:09:24 +0100
committerOndrej Holy <oholy@redhat.com>2023-03-29 13:43:10 +0000
commitfa27862d0c5f5d641a52f0b83812ac3d08c1cc7b (patch)
treee6c4d32c27bf23d2ab37e24f8e50f79d5364134a
parentcb48f51b980f9b0c5f29e0485b611f5c8b602c67 (diff)
downloadnautilus-fa27862d0c5f5d641a52f0b83812ac3d08c1cc7b.tar.gz
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.
-rw-r--r--src/nautilus-search-hit.c3
1 files changed, 0 insertions, 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 *