From 8b90e6436c1dca20fb9e8da84b7213ba207bd227 Mon Sep 17 00:00:00 2001 From: Colin Kiama Date: Wed, 10 Jan 2024 13:05:55 +0000 Subject: [PATCH] Remove old fuzzy search indexer testing logs --- .../fuzzy-search/fuzzy-search-indexer.vala | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/plugins/fuzzy-search/fuzzy-search-indexer.vala b/plugins/fuzzy-search/fuzzy-search-indexer.vala index cb3c5cf98..4c02bd344 100644 --- a/plugins/fuzzy-search/fuzzy-search-indexer.vala +++ b/plugins/fuzzy-search/fuzzy-search-indexer.vala @@ -80,14 +80,6 @@ public class Scratch.Services.FuzzySearchIndexer : GLib.Object { } public void handle_folder_item_change (GLib.File source, GLib.File? dest, GLib.FileMonitorEvent event) { - debug ("Find Project Files: Folder Item Change:\nSource File: %s\ndDestination File: %s\nEvent Type: %s", - source.get_path (), - dest != null - ? dest.get_path () - : "(None)", - FuzzySearchIndexer.enum_to_nick (event, typeof (GLib.FileMonitorEvent)) - ); - switch (event) { case GLib.FileMonitorEvent.CREATED: string path = source.get_path (); @@ -320,20 +312,4 @@ public class Scratch.Services.FuzzySearchIndexer : GLib.Object { return null; } - - private static string enum_to_nick (int @value, Type enum_type) { - var enum_class = (EnumClass) enum_type.class_ref (); - - if (enum_class == null) { - return "%i".printf (@value); - } - - unowned var enum_value = enum_class.get_value (@value); - - if (enum_value == null) { - return "%i".printf (@value); - } - - return enum_value.value_nick; - } }