Skip to content

Commit

Permalink
fix: Fix CLang compilation (#286)
Browse files Browse the repository at this point in the history
CLang compiler was detecting one of the find functions in the
FSNodeDirectory as recursive, which was causing the CLang build
to fail. This commit removes that function, which was not used in
the rest of the code and it is also simple.

Signed-off-by: Dave <[email protected]>
  • Loading branch information
dmga44 authored Jan 22, 2025
1 parent 4ca33cc commit 6ac8997
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/master/filesystem_node_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,16 +330,6 @@ struct FSNodeDirectory : public FSNode {
return entries.end();
}

/*! \brief Find directory entry with given node.
*
* \param node Node to find.
* \return If node is found returns iterator pointing to directory entry containing node,
* otherwise entries.end().
*/
const_iterator find(const FSNode *node) const {
return find(node);
}

iterator find_nth(EntriesContainer::size_type nth) {
return entries.find_nth(nth);
}
Expand Down

0 comments on commit 6ac8997

Please sign in to comment.