Skip to content

Commit 0593fe5

Browse files
committed
Remove test for old getMountpoint
1 parent 9ebee26 commit 0593fe5

File tree

2 files changed

+1
-51
lines changed

2 files changed

+1
-51
lines changed

internal/xdg/trashdir.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,12 @@ func getAllMountpoints() ([]string, error) {
238238
return mountpoints, nil
239239
}
240240

241-
var mountinfo_GetMounts = mountinfo.GetMounts
242-
243241
// Obtain a mount point associated with a file
244242
// Same as df <PATH>
245243
func getMountpoint(path string) (string, error) {
246244
// get mountpoints from /proc/self/mountinfo on Linux
247245
// getfsstat(2) used on Mac (BSD)
248-
mountpoints, err := mountinfo_GetMounts(nil)
246+
mountpoints, err := mountinfo.GetMounts(nil)
249247
if err != nil {
250248
return "", err
251249
}

internal/xdg/trashdir_test.go

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)