Patchwork [5,of,5,V2] context: remove makememctx since there are no more callers

login
register
mail settings
Submitter Sean Farley
Date Aug. 6, 2014, 11:20 p.m.
Message ID <25355ac02c21d41b3fa2.1407367226@laptop.local>
Download mbox | patch
Permalink /patch/5306/
State Changes Requested
Headers show

Comments

Sean Farley - Aug. 6, 2014, 11:20 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1402871048 25200
#      Sun Jun 15 15:24:08 2014 -0700
# Node ID 25355ac02c21d41b3fa2c26734e0359a051c8054
# Parent  dd995b3276747e0ceab33a4cddaf4e3dbcd4a877
context: remove makememctx since there are no more callers

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -344,23 +344,10 @@  class basectx(object):
 
         # we return a tuple to signify that this list isn't changing
         return tuple(r)
 
 
-def makememctx(repo, parents, text, user, date, branch, files, store,
-               editor=None):
-    def getfilectx(repo, memctx, path):
-        data, (islink, isexec), copied = store.getfile(path)
-        return memfilectx(repo, path, data, islink=islink, isexec=isexec,
-                                  copied=copied, memctx=memctx)
-    extra = {}
-    if branch:
-        extra['branch'] = encoding.fromlocal(branch)
-    ctx =  memctx(repo, parents, text, files, getfilectx, user,
-                          date, extra, editor)
-    return ctx
-
 class changectx(basectx):
     """A changecontext object makes access to data related to a particular
     changeset convenient. It represents a read-only context already present in
     the repo."""
     def __init__(self, repo, changeid=''):