diff --git a/c10/util/Exception.cpp b/c10/util/Exception.cpp
index 21cd3e5..6baa19a 100644
--- a/c10/util/Exception.cpp
+++ b/c10/util/Exception.cpp
@@ -9,18 +9,6 @@
 #include <string>
 #include <utility>
 
-// Google glog's api does not have an external function that allows one to check
-// if glog is initialized or not. It does have an internal function - so we are
-// declaring it here. This is a hack but has been used by a bunch of others too
-// (e.g. Torch, common/init). See also Logging.cpp in this directory.
-#ifdef C10_USE_GLOG
-namespace google {
-namespace glog_internal_namespace_ {
-bool IsGoogleLoggingInitialized();
-} // namespace glog_internal_namespace_
-} // namespace google
-#endif
-
 namespace c10 {
 
 Error::Error(std::string msg, Backtrace backtrace, const void* caller)
@@ -265,7 +253,7 @@ void WarningHandler::process(const Warning& warning) {
   // During static initialization (before InitGoogleLogging), glog's global
   // flags may not be constructed yet. Accessing them causes SIOF crashes
   // (T253115013, D96553733). Fall back to stderr in that case.
-  if (!::google::glog_internal_namespace_::IsGoogleLoggingInitialized()) {
+  if (!::google::IsGoogleLoggingInitialized()) {
     std::cerr << warning.source_location().file << ':'
               << warning.source_location().line
               << ": Warning: " << warning.msg() << " (function "
