diff --git a/src/libfetchers/git-utils.cc b/src/libfetchers/git-utils.cc index 7608c6323cd..3c629a63e8a 100644 --- a/src/libfetchers/git-utils.cc +++ b/src/libfetchers/git-utils.cc @@ -1007,24 +1007,10 @@ struct GitFileSystemObjectSinkImpl : GitFileSystemObjectSink struct Directory { - #if 0 - Directory * parent = nullptr; // FIXME: remove - std::string name; - #endif using Child = std::pair>; std::map children; std::optional oid; - #if 0 - CanonPath toPath() const - { - if (!parent) return CanonPath::root; - auto res = parent->toPath(); - res.push(name); - return res; - } - #endif - Child & lookup(const CanonPath & path) { assert(!path.isRoot()); @@ -1066,10 +1052,6 @@ struct GitFileSystemObjectSinkImpl : GitFileSystemObjectSink std::string(i), Directory::Child{GIT_FILEMODE_TREE, {Directory()}}).first->second.second); assert(child); - #if 0 - child->parent = cur; - child->name = i; - #endif cur = child; }