Rev 6550: Dead code: not tested hence broken. Besides, bzr cannot build a tree object without a branch (tree.branch cannot be None). in file:///home/vila/src/bzr/cleanup/dead-code/

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Aug 2 11:28:26 UTC 2012


At file:///home/vila/src/bzr/cleanup/dead-code/

------------------------------------------------------------
revno: 6550
revision-id: v.ladeuil+lp at free.fr-20120802112825-31oczwqbc2stugqy
parent: pqm at pqm.ubuntu.com-20120801095449-yzevoszth5odzgjk
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: dead-code
timestamp: Thu 2012-08-02 13:28:25 +0200
message:
  Dead code: not tested hence broken. Besides, bzr cannot build a tree object without a branch (tree.branch cannot be None).
-------------- next part --------------
=== modified file 'bzrlib/filters/__init__.py'
--- a/bzrlib/filters/__init__.py	2012-03-29 14:54:16 +0000
+++ b/bzrlib/filters/__init__.py	2012-08-02 11:28:25 +0000
@@ -90,7 +90,6 @@
         # Cached values
         self._revision_id = None
         self._revision = None
-        self._config = None
 
     def relpath(self):
         """Relative path of file to tree-root."""
@@ -131,16 +130,6 @@
                 self._revision = repo.get_revision(rev_id)
         return self._revision
 
-    def config(self):
-        """The Config object to search for configuration settings."""
-        if self._config is None:
-            branch = getattr(self._tree, 'branch', None)
-            if branch is not None:
-                self._config = branch.get_config()
-            else:
-                self._config = config.GlobalConfig()
-        return self._config
-
 
 def filtered_input_file(f, filters):
     """Get an input file that converts external to internal content.



More information about the bazaar-commits mailing list