Browse Source

remove unused gpg_decrypt()

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

+ 0 - 7
rc.xsh

@@ -244,13 +244,6 @@ def fuse_mount(mount_arg_patterns, mount_point_path):
         sys.stderr.write('{}\n'.format(shlex_join(umount_args)))
         subprocess.check_call(umount_args)
 
-def gpg_decrypt(path, verify=False):
-    import gpg
-    with gpg.Context() as gpg_ctx:
-        with open(path, 'rb') as f:
-            data, decrypt_result, verify_result = gpg_ctx.decrypt(f, verify=verify)
-    return data
-
 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]: