Remove unused hb_blob_try_writable_inplace()
This commit is contained in:
parent
08611d5194
commit
a0f337a1cc
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user