Skip to content

Commit 4874746

Browse files
author
Hugo Osvaldo Barrera
committed
Remove unused code
1 parent 955f434 commit 4874746

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

vdirsyncer/storage/dav.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,6 @@
2929
CALDAV_DT_FORMAT = "%Y%m%dT%H%M%SZ"
3030

3131

32-
def _generate_path_reserved_chars():
33-
for x in "/?#[]!$&'()*+,;":
34-
x = urlparse.quote(x, "")
35-
yield x.upper()
36-
yield x.lower()
37-
38-
39-
_path_reserved_chars = frozenset(_generate_path_reserved_chars())
40-
del _generate_path_reserved_chars
41-
42-
43-
def _contains_quoted_reserved_chars(x):
44-
for y in _path_reserved_chars:
45-
if y in x:
46-
dav_logger.debug(f"Unsafe character: {y!r}")
47-
return True
48-
return False
49-
50-
5132
async def _assert_multistatus_success(r):
5233
# Xandikos returns a multistatus on PUT.
5334
try:

0 commit comments

Comments
 (0)