~jelmer/bzr/integrated

« back to all changes in this revision

Viewing changes to bzrlib/filters/__init__.py

  • Committer: Patch Queue Manager
  • Date: 2012-08-02 14:22:37 UTC
  • mfrom: (6549.1.1 dead-code)
  • Revision ID: pqm@pqm.ubuntu.com-20120802142237-yjnpeqh1d55kb2sw
(vila) Remove dead code bzrlib.filters.ContentFilterContext.config(): wasn't
 tested nor used. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
        # Cached values
91
91
        self._revision_id = None
92
92
        self._revision = None
93
 
        self._config = None
94
93
 
95
94
    def relpath(self):
96
95
        """Relative path of file to tree-root."""
131
130
                self._revision = repo.get_revision(rev_id)
132
131
        return self._revision
133
132
 
134
 
    def config(self):
135
 
        """The Config object to search for configuration settings."""
136
 
        if self._config is None:
137
 
            branch = getattr(self._tree, 'branch', None)
138
 
            if branch is not None:
139
 
                self._config = branch.get_config()
140
 
            else:
141
 
                self._config = config.GlobalConfig()
142
 
        return self._config
143
 
 
144
133
 
145
134
def filtered_input_file(f, filters):
146
135
    """Get an input file that converts external to internal content.