@@ -12,9 +12,6 @@ export const enum FeatureToggle {
12
12
finsights = 'cost-management.ui.finsights' , // RHEL support for FINsights https://issues.redhat.com/browse/COST-3306
13
13
ibm = 'cost-management.ui.ibm' , // IBM https://issues.redhat.com/browse/COST-935
14
14
ocpCloudGroupBys = 'cost-management.ui.ocp-cloud-group-bys' , // https://issues.redhat.com/browse/COST-5514
15
- ocpCloudNetworking = 'cost-management.ui.ocp-cloud-networking' , // https://issues.redhat.com/browse/COST-4781
16
- ocpProjectStorage = 'cost-management.ui.ocp-project-storage' , // https://issues.redhat.com/browse/COST-4856
17
- ros = 'cost-management.ui.ros' , // ROS support https://issues.redhat.com/browse/COST-3477
18
15
}
19
16
20
17
const useIsToggleEnabled = ( toggle : FeatureToggle ) => {
@@ -50,18 +47,6 @@ export const useIsOcpCloudGroupBysToggleEnabled = () => {
50
47
return useIsToggleEnabled ( FeatureToggle . ocpCloudGroupBys ) ;
51
48
} ;
52
49
53
- export const useIsOcpCloudNetworkingToggleEnabled = ( ) => {
54
- return useIsToggleEnabled ( FeatureToggle . ocpCloudNetworking ) ;
55
- } ;
56
-
57
- export const useIsOcpProjectStorageToggleEnabled = ( ) => {
58
- return useIsToggleEnabled ( FeatureToggle . ocpProjectStorage ) ;
59
- } ;
60
-
61
- export const useIsRosToggleEnabled = ( ) => {
62
- return useIsToggleEnabled ( FeatureToggle . ros ) ;
63
- } ;
64
-
65
50
// The FeatureToggle component saves feature toggles in store for places where Unleash hooks not available
66
51
export const useFeatureToggle = ( ) => {
67
52
const dispatch = useDispatch ( ) ;
@@ -74,9 +59,6 @@ export const useFeatureToggle = () => {
74
59
const isFinsightsToggleEnabled = useIsFinsightsToggleEnabled ( ) ;
75
60
const isIbmToggleEnabled = useIsIbmToggleEnabled ( ) ;
76
61
const isOcpCloudGroupBysToggleEnabled = useIsOcpCloudGroupBysToggleEnabled ( ) ;
77
- const isOcpCloudNetworkingToggleEnabled = useIsOcpCloudNetworkingToggleEnabled ( ) ;
78
- const isOcpProjectStorageToggleEnabled = useIsOcpProjectStorageToggleEnabled ( ) ;
79
- const isRosToggleEnabled = useIsRosToggleEnabled ( ) ;
80
62
81
63
const fetchUser = callback => {
82
64
auth . getUser ( ) . then ( user => {
@@ -95,9 +77,6 @@ export const useFeatureToggle = () => {
95
77
isFinsightsToggleEnabled,
96
78
isIbmToggleEnabled,
97
79
isOcpCloudGroupBysToggleEnabled,
98
- isOcpCloudNetworkingToggleEnabled,
99
- isOcpProjectStorageToggleEnabled,
100
- isRosToggleEnabled,
101
80
} )
102
81
) ;
103
82
if ( isDebugToggleEnabled ) {
@@ -112,9 +91,6 @@ export const useFeatureToggle = () => {
112
91
isFinsightsToggleEnabled ,
113
92
isIbmToggleEnabled ,
114
93
isOcpCloudGroupBysToggleEnabled ,
115
- isOcpCloudNetworkingToggleEnabled ,
116
- isOcpProjectStorageToggleEnabled ,
117
- isRosToggleEnabled ,
118
94
] ) ;
119
95
} ;
120
96
0 commit comments