Skip to content

Commit a56977b

Browse files
authored
Startup: Remove unused get_path_from_uri (#270)
1 parent aca1d9b commit a56977b

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

src/Startup/Startup.vala

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -143,20 +143,6 @@ public class Startup.Plug : Switchboard.SettingsPage {
143143
add_app (key_file);
144144
}
145145

146-
private string? get_path_from_uri (string uri) {
147-
if (uri.has_prefix ("#") || uri.strip () == "")
148-
return null;
149-
150-
try {
151-
return GLib.Filename.from_uri (uri);
152-
} catch (Error e) {
153-
warning ("Could not convert URI of dropped item to filename");
154-
warning (e.message);
155-
}
156-
157-
return null;
158-
}
159-
160146
private int sort_function (Gtk.ListBoxRow row1, Gtk.ListBoxRow row2) {
161147
var name_1 = ((Widgets.AppRow) row1).app_info.name;
162148
var name_2 = ((Widgets.AppRow) row2).app_info.name;

0 commit comments

Comments
 (0)