Patchwork [6,of,7] largefiles: remove unused readstandin()

login
register
mail settings
Submitter Katsunori FUJIWARA
Date March 31, 2017, 5:41 p.m.
Message ID <89507622f5b4cb8b8e9f.1490982111@speaknoevil>
Download mbox | patch
Permalink /patch/19878/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - March 31, 2017, 5:41 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1490981569 -32400
#      Sat Apr 01 02:32:49 2017 +0900
# Node ID 89507622f5b4cb8b8e9f99a02db43b64f10d95f3
# Parent  b9fb0f258b9e13605fac19a7aba4cad71e465326
largefiles: remove unused readstandin()

Now, there is no client of readstandin().

Patch

diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py
+++ b/hgext/largefiles/lfutil.py
@@ -361,11 +361,6 @@  def readasstandin(fctx):
     This encapsulates how "standin" data is stored into storage layer.'''
     return fctx.data().strip()
 
-def readstandin(repo, filename, node=None):
-    '''read hex hash from standin for filename at given node, or working
-    directory if no node is given'''
-    return readasstandin(repo[node][standin(filename)])
-
 def writestandin(repo, standin, hash, executable):
     '''write hash to <repo.root>/<standin>'''
     repo.wwrite(standin, hash + '\n', executable and 'x' or '')