Remove legacy platform singleton accessor
This commit is contained in:
@@ -45,7 +45,8 @@ void webgl_sync();
|
||||
|
||||
namespace {
|
||||
|
||||
// DEBT-0017: fallback for platforms that do not inject PlatformServices yet.
|
||||
// DEBT-0017: retained non-Windows fallback adapter until each platform owns a
|
||||
// concrete PlatformServices implementation without this bridge.
|
||||
class LegacyPlatformServices final : public pp::platform::PlatformServices {
|
||||
public:
|
||||
explicit LegacyPlatformServices(pp::platform::legacy::LegacyPlatformServicesConfig config = {})
|
||||
@@ -571,12 +572,6 @@ private:
|
||||
|
||||
namespace pp::platform::legacy {
|
||||
|
||||
PlatformServices& platform_services()
|
||||
{
|
||||
static LegacyPlatformServices services;
|
||||
return services;
|
||||
}
|
||||
|
||||
std::unique_ptr<PlatformServices> create_platform_services(
|
||||
LegacyPlatformServicesConfig config)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ struct LegacyPlatformServicesConfig {
|
||||
std::shared_ptr<pp::platform::PlatformStoragePaths> android_storage_paths;
|
||||
};
|
||||
|
||||
[[nodiscard]] PlatformServices& platform_services();
|
||||
[[nodiscard]] std::unique_ptr<PlatformServices> create_platform_services(
|
||||
LegacyPlatformServicesConfig config = {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user