diff --git a/src/hb-blob.cc b/src/hb-blob.cc index 664ad782fbe8bbc24665772449b7b14545d331e5..b903acc12c2685a42efcf9e6ea4d9935b8c96f50 100644 --- a/src/hb-blob.cc +++ b/src/hb-blob.cc @@ -323,26 +323,6 @@ try_writable_inplace_locked (hb_blob_t *blob) } } -hb_bool_t -hb_blob_try_writable_inplace (hb_blob_t *blob) -{ - hb_memory_mode_t mode; - - if (hb_object_is_inert (blob)) - return FALSE; - - hb_mutex_lock (&blob->lock); - - if (blob->mode == HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE) - try_writable_inplace_locked (blob); - - mode = blob->mode; - - hb_mutex_unlock (&blob->lock); - - return mode == HB_MEMORY_MODE_WRITABLE; -} - hb_bool_t hb_blob_try_writable (hb_blob_t *blob) { diff --git a/src/hb-blob.h b/src/hb-blob.h index 8bfbd48e5e6adcc39e28959b047fff8c24aba6b4..3ec35a8436c5b6775837996ccacb27c6bfb01716 100644 --- a/src/hb-blob.h +++ b/src/hb-blob.h @@ -86,9 +86,6 @@ hb_blob_unlock (hb_blob_t *blob); hb_bool_t hb_blob_is_writable (hb_blob_t *blob); -hb_bool_t -hb_blob_try_writable_inplace (hb_blob_t *blob); - hb_bool_t hb_blob_try_writable (hb_blob_t *blob);