mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
andrdoid: Fix some compiler warnings (#34070)
This removes unused code in order to reduce the number of compiler warnings on the Android build. Some of this code might be used in the future and it can be restored from git commit history. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
517e8a376a
commit
f12071f77e
8 changed files with 14 additions and 86 deletions
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
|
||||
#[cfg(not(any(target_os = "macos", target_os = "linux", target_os = "android")))]
|
||||
pub fn install() {}
|
||||
|
||||
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||
|
@ -49,7 +49,7 @@ pub fn install() {
|
|||
signal!(libc::SIGBUS, handler); // handle invalid memory access
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
|
||||
#[cfg(not(any(target_os = "macos", target_os = "linux", target_os = "android")))]
|
||||
pub(crate) fn raise_signal_or_exit_with_error(_signal: i32) {
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue