Mercurial > hgsubversion
changeset 1143:166db09962df
util: remove unused load_string
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Sat, 15 Feb 2014 10:52:00 -0600 |
parents | f4a32d381e03 |
children | 729becb9154b |
files | hgsubversion/util.py |
diffstat | 1 files changed, 0 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- 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 = ""