# HG changeset patch # User Sean Farley # Date 1392483120 21600 # Node ID 166db09962dfcbdee4e2e5366e0a159b0807905d # Parent f4a32d381e03b8e32c885b87a28dd947e194f243 util: remove unused load_string diff --git a/hgsubversion/util.py b/hgsubversion/util.py --- a/hgsubversion/util.py +++ b/hgsubversion/util.py @@ -121,21 +121,6 @@ def normalize_url(url): url = '%s#%s' % (url, checkout) return url - -def load_string(file_path, default=None, limit=1024): - if not os.path.exists(file_path): - return default - try: - f = open(file_path, 'r') - ret = f.read(limit) - f.close() - except: - return default - if ret == '': - return default - return ret - - def save_string(file_path, string): if string is None: string = ""