cairo: Remove the API docs.
@@ -64,16 +64,6 @@ impl ImageSurface {
result
}
- /// Get the pixel data of the image surface, for direct inspection or modification.
- ///
- /// Unlike the C API, this method calls `flush` on the surface.
- ///
- /// Returns an error if [`finish`] was called on this surface, or if the surface is being
- /// referenced by a [`Context`](struct.Context.html). See [`with_data`] if you need to access
- /// the data on an image surface that is being referenced by a `Context`.
- ///
- /// [`finish`]: struct.Surface.html#method.finish
- /// [`with_data`]: struct.ImageSurface.html#method.with_data
pub fn get_data(&mut self) -> Result<ImageSurfaceData, BorrowError> {
unsafe {
if ffi::cairo_surface_get_reference_count(self.to_raw_none()) > 1 {
@@ -93,12 +83,6 @@ impl ImageSurface {
}
}
- /// Call the provided function with access to the pixel data of this image.
- ///
- /// Unlike [`get_data`], this can succeed even if there is a [`Context`](struct.Context.html)
- /// referencing this image.
- ///
- /// [`get_data`]: struct.ImageSurface.html#method.get_data
pub fn with_data<F: FnOnce(&[u8])>(&self, f: F) -> Result<(), BorrowError> {
self.flush();
unsafe {
