mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
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:
parent
a6486c18d4
commit
f55c686316
@ -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);
|
||||
|
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user