fs: remove TreeInode::getAttrLocked

Summary: This is unused, and it has a hard dependency on Fuse, so let's remove it.

Reviewed By: chadaustin

Differential Revision: D26742212

fbshipit-source-id: 091556be39e599512d34920503083d03d4c5a0c2
This commit is contained in:
Xavier Deguillard 2021-03-02 15:04:23 -08:00 committed by Facebook GitHub Bot
parent e882926adb
commit c8f7601481
2 changed files with 0 additions and 16 deletions

View File

@ -203,20 +203,6 @@ folly::Future<struct stat> TreeInode::stat(ObjectFetchContext& /*context*/) {
return st;
}
#ifndef _WIN32
FuseDispatcher::Attr TreeInode::getAttrLocked(const DirContents& contents) {
FuseDispatcher::Attr attr(getMount()->initStatData());
attr.st.st_ino = getNodeId().get();
getMetadataLocked(contents).applyToStat(attr.st);
// For directories, nlink is the number of entries including the
// "." and ".." links.
attr.st.st_nlink = contents.size() + 2;
return attr;
}
#endif // !_WIN32
Future<InodePtr> TreeInode::getOrLoadChild(
PathComponentPiece name,
ObjectFetchContext& context) {

View File

@ -116,8 +116,6 @@ class TreeInode final : public InodeBaseMetadata<DirContents> {
folly::Future<std::vector<std::string>> listxattr() override;
folly::Future<std::string> getxattr(folly::StringPiece name) override;
FuseDispatcher::Attr getAttrLocked(const DirContents& contents);
#endif // !_WIN32
/**