From: Brian Warner Date: Tue, 20 May 2008 01:38:28 +0000 (-0700) Subject: web/filenode: remove unreachable code X-Git-Tag: allmydata-tahoe-1.1.0~111 X-Git-Url: https://git.rkrishnan.org/%5B/COPYING.TGPPL.html?a=commitdiff_plain;h=fe8fdfac64872c4f10cb7845fdb0a777dd76c7e8;p=tahoe-lafs%2Ftahoe-lafs.git web/filenode: remove unreachable code --- diff --git a/src/allmydata/web/filenode.py b/src/allmydata/web/filenode.py index 608dc19e..4710d504 100644 --- a/src/allmydata/web/filenode.py +++ b/src/allmydata/web/filenode.py @@ -87,16 +87,6 @@ class PlaceHolderNodeHandler(RenderMixin, rend.Page, ReplaceMeMixin): self.name = name self.node = None - def childFactory(self, ctx, name): - req = IRequest(ctx) - if should_create_intermediate_directories(req): - raise WebError("Cannot create directory '%s', because its " - "parent is a file, not a directory" % name, - http.CONFLICT) - raise WebError("Files have no children, certainly not named '%s'" - % name, http.CONFLICT) - - def render_PUT(self, ctx): req = IRequest(ctx) t = get_arg(req, "t", "").strip()