Skip to content

Commit 1eb797b

Browse files
Copilotanupriya13
andcommitted
Remove unnecessary GetEnableFabric function and EnableFabricProperty from QuirkSettings
Co-authored-by: anupriya13 <54227869+anupriya13@users.noreply.github.com>
1 parent 089cb8a commit 1eb797b

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

vnext/Microsoft.ReactNative/QuirkSettings.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ winrt::Microsoft::ReactNative::ReactPropertyId<bool> EnableSyncDetachRootViewPro
8888
return propId;
8989
}
9090

91-
winrt::Microsoft::ReactNative::ReactPropertyId<bool> EnableFabricProperty() noexcept {
92-
static winrt::Microsoft::ReactNative::ReactPropertyId<bool> propId{L"ReactNative.QuirkSettings", L"EnableFabric"};
93-
return propId;
94-
}
95-
9691
#pragma region IDL interface
9792

9893
/*static*/ void QuirkSettings::SetMatchAndroidAndIOSStretchBehavior(
@@ -179,8 +174,4 @@ winrt::Microsoft::ReactNative::ReactPropertyId<bool> EnableFabricProperty() noex
179174
return properties.Get(EnableSyncDetachRootViewProperty()).value_or(false);
180175
}
181176

182-
/*static*/ bool QuirkSettings::GetEnableFabric(ReactPropertyBag properties) noexcept {
183-
return properties.Get(EnableFabricProperty()).value_or(false);
184-
}
185-
186177
} // namespace winrt::Microsoft::ReactNative::implementation

vnext/Microsoft.ReactNative/QuirkSettings.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ struct QuirkSettings : QuirkSettingsT<QuirkSettings> {
3131
static bool GetSuppressWindowFocusOnViewFocus(winrt::Microsoft::ReactNative::ReactPropertyBag properties) noexcept;
3232
static bool GetUseRuntimeScheduler(winrt::Microsoft::ReactNative::ReactPropertyBag properties) noexcept;
3333

34-
static bool GetEnableFabric(winrt::Microsoft::ReactNative::ReactPropertyBag properties) noexcept;
35-
3634
static void SetMapWindowDeactivatedToAppStateInactive(
3735
winrt::Microsoft::ReactNative::ReactPropertyBag properties,
3836
bool value) noexcept;

0 commit comments

Comments
 (0)