remove an ifdef around getPrjfsChannel

Summary:
Even though PrjfsChannel has no definition on unix, we can still offer
the function. This removes an ifdef. Any attempt to PrjfsChannel
remains limited to Windows.

Reviewed By: kmancini

Differential Revision: D45167158

fbshipit-source-id: b2769ba003c3decf964c9cea06b8b4238ed5887c
This commit is contained in:
Chad Austin 2023-05-11 11:55:24 -07:00 committed by Facebook GitHub Bot
parent a6486c18d4
commit f55c686316
2 changed files with 4 additions and 7 deletions

View File

@ -1167,13 +1167,13 @@ FuseChannel* FOLLY_NULLABLE EdenMount::getFuseChannel() const {
#endif
}
#ifdef _WIN32
PrjfsChannel* FOLLY_NULLABLE EdenMount::getPrjfsChannel() const {
#ifdef _WIN32
return dynamic_cast<PrjfsChannel*>(channel_.get());
}
#else
return nullptr;
#endif
}
void EdenMount::setTestFsChannel(FsChannelPtr channel) {
channel_ = std::move(channel);

View File

@ -401,11 +401,8 @@ class EdenMount : public std::enable_shared_from_this<EdenMount> {
* synchronization here with the mount start operation. This method provides
* no internal synchronization of its own.)
*/
#ifdef _WIN32
PrjfsChannel* FOLLY_NULLABLE getPrjfsChannel() const;
#endif
/**
* Set a test channel for this mount point.
*