diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2022-08-24 09:50:33 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2022-10-05 20:10:47 +0200 |
commit | 6bf02c016236c2d79b3e8cf10cfb580157535e5f (patch) | |
tree | ddbeffddec3fa9c943d4f519e3ff211cd4e8e2c9 /drivers | |
parent | d331b803b8e63b0dab406a12c21805a17ee0a6a8 (diff) |
Keep a single, portable implementation of `OS::get_processor_count()`
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/unix/os_unix.cpp | 4 | ||||
-rw-r--r-- | drivers/unix/os_unix.h | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index c8a42e925e..1cdab6cfce 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -503,10 +503,6 @@ bool OS_Unix::set_environment(const String &p_var, const String &p_value) const return setenv(p_var.utf8().get_data(), p_value.utf8().get_data(), /* overwrite: */ true) == 0; } -int OS_Unix::get_processor_count() const { - return sysconf(_SC_NPROCESSORS_CONF); -} - String OS_Unix::get_user_data_dir() const { String appname = get_safe_dir_name(ProjectSettings::get_singleton()->get("application/config/name")); if (!appname.is_empty()) { diff --git a/drivers/unix/os_unix.h b/drivers/unix/os_unix.h index b35f161524..a1bd8bd356 100644 --- a/drivers/unix/os_unix.h +++ b/drivers/unix/os_unix.h @@ -84,8 +84,6 @@ public: virtual bool set_environment(const String &p_var, const String &p_value) const override; virtual String get_locale() const override; - virtual int get_processor_count() const override; - virtual void initialize_debugging() override; virtual String get_executable_path() const override; |