Skip to content

Commit

Permalink
Remove old fuzzy search indexer testing logs
Browse files Browse the repository at this point in the history
  • Loading branch information
colinkiama committed Jan 10, 2024
1 parent 225b3ad commit 8b90e64
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions plugins/fuzzy-search/fuzzy-search-indexer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 8b90e64

Please sign in to comment.