From 805c971836354d708d48efc3891facdae06853e4 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 8 Aug 2011 15:15:58 +0100 Subject: Get rid of unnecessary code. --- summain | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'summain') diff --git a/summain b/summain index 67b73cd..84b3c35 100755 --- a/summain +++ b/summain @@ -114,23 +114,8 @@ class Summain(cliapp.Application): yield root def process_args(self, args): - relative = self.settings['relative-paths'] - exclude = self.settings['exclude'] - nn = summainlib.NumberNormalizer() - if self.settings['mangle-paths']: - pn = summainlib.PathNormalizer(self.settings['secret']) - else: - pn = summainlib.SamePath() - checksums = [x.upper() for x in self.settings['checksum'] or ['SHA1']] - o = summainlib.FilesystemObject('.', nn, pn, exclude) - for checksum in checksums: - try: - o[checksum] - except KeyError: - raise cliapp.AppException('Unknown checksum %s' % checksum) - fmt = self.new_formatter(checksums) for name, o in self.find_roots(args): fmt.write_object(name, o) -- cgit v1.2.1