Index: ui/ozone/common/egl_util.cc |
diff --git a/ui/ozone/common/egl_util.cc b/ui/ozone/common/egl_util.cc |
index b33407ae5428013d0e31c363dad107bd72de9ce7..0dd4d33250e4bd1d7ac21f722d7fe3a748e59b14 100644 |
--- a/ui/ozone/common/egl_util.cc |
+++ b/ui/ozone/common/egl_util.cc |
@@ -86,27 +86,4 @@ EGLConfig ChooseEGLConfig(EGLDisplay display, const int32_t* attributes) { |
return config; |
} |
-void* /* EGLConfig */ ChooseEGLConfig(const EglConfigCallbacks& egl, |
- const int32_t* attributes) { |
- void* config; |
- int32_t num_configs; |
- if (!egl.choose_config.Run(attributes, nullptr, 0, &num_configs)) { |
- LOG(ERROR) << "eglChooseConfig failed with error " |
- << egl.get_last_error_string.Run(); |
- return nullptr; |
- } |
- |
- if (num_configs == 0) { |
- LOG(ERROR) << "No suitable EGL configs found."; |
- return nullptr; |
- } |
- |
- if (!egl.choose_config.Run(attributes, &config, 1, &num_configs)) { |
- LOG(ERROR) << "eglChooseConfig failed with error " |
- << egl.get_last_error_string.Run(); |
- return nullptr; |
- } |
- return config; |
-} |
- |
} // namespace ui |