mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
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:
parent
e882926adb
commit
c8f7601481
@ -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) {
|
||||
|
@ -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
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user