From 1f9f867c70fc76ae1c0b307e38997c17e084c051 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 16 Apr 2017 20:35:08 +0200 Subject: [PATCH] Remove unused util function --- spacy/util.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/spacy/util.py b/spacy/util.py index 24c0d74f1..573489682 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -45,15 +45,6 @@ def ensure_path(path): return path -def or_(val1, val2): - if val1 is not None: - return val1 - elif callable(val2): - return val2() - else: - return val2 - - def read_regex(path): path = ensure_path(path) with path.open() as file_: