mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
OHOS: Clean up some compile warnings (#38240)
This cleans up some compile warnings about unused functions. Testing: Does not change functionality, OHOS and Linux still compile (hopefully the other builds too). --------- Signed-off-by: Narfinger <Narfinger@users.noreply.github.com> Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Co-authored-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
bb5cb57099
commit
6ace7ad577
4 changed files with 10 additions and 3 deletions
|
@ -702,6 +702,7 @@ pub(crate) struct XrDiscoveryWebXrRegistry {
|
|||
}
|
||||
|
||||
#[cfg(feature = "webxr")]
|
||||
#[cfg_attr(target_env = "ohos", allow(dead_code))]
|
||||
impl XrDiscoveryWebXrRegistry {
|
||||
pub(crate) fn new(xr_discovery: Option<servo::webxr::Discovery>) -> Self {
|
||||
Self {
|
||||
|
|
|
@ -818,6 +818,7 @@ struct HostCallbacks {
|
|||
ime_proxy: RefCell<Option<ohos_ime::ImeProxy>>,
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug)]
|
||||
enum ImeError {
|
||||
TextEditorProxy(CreateTextEditorProxyError),
|
||||
|
@ -1007,7 +1008,7 @@ impl HostTrait for HostCallbacks {
|
|||
if ime_proxy.is_none() {
|
||||
*ime_proxy = match self.try_create_ime_proxy(input_type, multiline) {
|
||||
Err(ref e) => {
|
||||
error!("Couold not show keyboard because of {e:?}");
|
||||
error!("Could not show keyboard because of {e:?}");
|
||||
None
|
||||
},
|
||||
Ok(proxy) => Some(proxy),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue