Remove REST support partially

Changes:
   - REST flag initialization code is being
    deprecated here.

Tested:
   - Tested from the sandbox with the changes
     Robot Framework 7.2.2 (Python 3.12.9 on linux)
   - Tested in boot test environment

Change-Id: Ifa646d20f35ee0a20b5116ec057903246526aeba
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/bmc_redfish_utils.py b/lib/bmc_redfish_utils.py
index 099345a..5a0400e 100644
--- a/lib/bmc_redfish_utils.py
+++ b/lib/bmc_redfish_utils.py
@@ -35,20 +35,9 @@
         if MTLS_ENABLED == "True":
             self.__inited__ = True
         else:
-            # There is a possibility that a given driver support both redfish and
-            # legacy REST.
+            # initialized if only login succeed.
             self._redfish_.login()
-            self._rest_response_ = self._redfish_.get(
-                "/xyz/openbmc_project/", valid_status_codes=[200, 404]
-            )
-
-            # If REST URL /xyz/openbmc_project/ is supported.
-            if self._rest_response_.status == 200:
-                self.__inited__ = True
-
-        BuiltIn().set_global_variable(
-            "${REDFISH_REST_SUPPORTED}", self.__inited__
-        )
+            self.__inited__ = True
 
     def get_redfish_session_info(self):
         r"""