瀏覽代碼

remove unused gpg_decrypt()

Fabian Peter Hammerle 6 年之前
父節點
當前提交
b7a8861963
共有 1 個文件被更改,包括 0 次插入7 次删除
  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]: