From 6ac8997c00200cec996c2855defe256531314157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Manuel=20Garc=C3=ADa=20Aguilera?= Date: Wed, 22 Jan 2025 18:05:31 +0000 Subject: [PATCH] fix: Fix CLang compilation (#286) 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 --- src/master/filesystem_node_types.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/master/filesystem_node_types.h b/src/master/filesystem_node_types.h index 75369a572..6e1fe8ee0 100644 --- a/src/master/filesystem_node_types.h +++ b/src/master/filesystem_node_types.h @@ -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); }