Fix a number of Android compilation warnings

* src/dispnew.c (frame_rect_abs, frame_pos_abs, rect_intersect)
(copy_child_glyphs, abs_cursor_pos, is_in_matrix)
(is_cursor_obscured) [HAVE_ANDROID]: Delete functions.
This commit is contained in:
Po Lu 2024-12-21 08:53:21 +08:00
parent b71ddaf6d3
commit 2d173aa3d3

View file

@ -3288,6 +3288,8 @@ struct rect
int x, y, w, h;
};
#ifndef HAVE_ANDROID
/* Compute the intersection of R1 and R2 in R. Value is true if R1 and
R2 intersect, false otherwise. */
@ -3330,6 +3332,8 @@ frame_rect_abs (struct frame *f)
return (struct rect) { x, y, f->total_cols, f->total_lines };
}
#endif /* !HAVE_ANDROID */
/* Return the root frame of frame F. Follow the parent_frame chain
until we reach a frame that has no parent. That is the root frame.
Note that the root of a root frame is itself. */
@ -3512,6 +3516,8 @@ make_matrix_current (struct frame *f)
make_current (f, NULL, i);
}
#ifndef HAVE_ANDROID
/* Prepare ROOT's desired row at index Y for copying child frame
contents to it. Value is the prepared desired row or NULL if we
don't have, and can't contruct a desired row. */
@ -3745,6 +3751,8 @@ copy_child_glyphs (struct frame *root, struct frame *child)
}
}
#endif /* !HAVE_ANDROID */
/***********************************************************************
Frame Update
***********************************************************************/
@ -3837,6 +3845,8 @@ update_tty_frame (struct frame *f)
build_frame_matrix (f);
}
#ifndef HAVE_ANDROID
/* Return the cursor position of the selected window of frame F, in
absolute coordinates in *X and *Y. Note that if F is a child frame,
its cursor may be clipped, i.e. outside of the bounds of the terminal
@ -3903,8 +3913,6 @@ is_cursor_obscured (void)
return cursor_glyph->frame != SELECTED_FRAME ();
}
#ifndef HAVE_ANDROID
/* Decide where to show the cursor, and whether to hide it.
This works very well for Vertico-Posframe, Transient-Posframe and