From 93f8a475d48fb755c2b433fcd6d814795b2b5083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Caletka?= Date: Thu, 12 Jul 2018 16:19:28 +0200 Subject: [PATCH] Remove forgotten useless function --- dzonegit.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/dzonegit.py b/dzonegit.py index 81e1932..341bfe0 100644 --- a/dzonegit.py +++ b/dzonegit.py @@ -68,19 +68,6 @@ def check_whitespace_errors(against, revision=None): ) -def check_tree_whitespace_errors(tree1, tree2): - r = subprocess.run( - ["git", "diff-tree", "--check", tree1, tree2], - stdout=subprocess.PIPE, - stderr=subprocess.STDOUT, - ) - if r.returncode != 0: - raise HookException( - "Whitespace errors", - stderr=r.stdout.decode("utf-8"), - ) - - def get_file_contents(path, revision=None): """ Return contents of a file in staged env or in some revision. """ revision = "" if revision is None else revision