Browse Source

remove unused locate()

Fabian Peter Hammerle 5 years ago
parent
commit
c8b1d1d254
1 changed files with 0 additions and 8 deletions
  1. 0 8
      rc.xsh

+ 0 - 8
rc.xsh

@@ -251,14 +251,6 @@ def gpg_decrypt(path, verify=False):
             data, decrypt_result, verify_result = gpg_ctx.decrypt(f, verify=verify)
     return data
 
-def locate(*patterns, match_all=True, ignore_case=True):
-    params = []
-    if match_all:
-        params.insert(0, '--all')
-    if ignore_case:
-        params.insert(0, '--ignore-case')
-    return $(locate @(params) -- @(patterns)).split('\n')[:-1]
-
 def os_read_non_blocking(fd, buffer_size_bytes=8*1024, timeout_seconds=0.1):
     import select
     if fd in select.select([fd], [], [], timeout_seconds)[0]: