Skip to content

Commit

Permalink
Remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Dec 19, 2024
1 parent 668f120 commit 4e96f92
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/libfetchers/git-utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1007,24 +1007,10 @@ struct GitFileSystemObjectSinkImpl : GitFileSystemObjectSink

struct Directory
{
#if 0
Directory * parent = nullptr; // FIXME: remove
std::string name;
#endif
using Child = std::pair<git_filemode_t, std::variant<Directory, git_oid>>;
std::map<std::string, Child> children;
std::optional<git_oid> 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());
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 4e96f92

Please sign in to comment.