Bug 211368

Summary: Remove some unused and broken functions in Bitmap.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, ews-watchlist, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch. ysuzuki: review+

Description Mark Lam 2020-05-03 23:22:15 PDT
Bitmap::operator[] never worked.  There's currently no way to use it to read a bit value.  We also can't use it to set a bit value because it relies on Bitmap::iterator::operator= to set the value.  However, Bitmap::iterator stores the Bitmap* as a const pointer, and Bitmap::iterator::operator= calls set() on the const pointer.  If we try to use operator[] to set a bit, we'll get a compilation error.

This patch removes the 2 variants of Bitmap::operator[] and Bitmap::iterator::operator=.
Comment 1 Mark Lam 2020-05-03 23:34:12 PDT
Created attachment 398348 [details]
proposed patch.
Comment 2 Yusuke Suzuki 2020-05-04 00:01:25 PDT
Comment on attachment 398348 [details]
proposed patch.

r=me
Comment 3 Mark Lam 2020-05-04 00:15:58 PDT
Thanks for the review.  Landed in r261073: <http://trac.webkit.org/r261073>.
Comment 4 Radar WebKit Bug Importer 2020-05-04 00:16:15 PDT
<rdar://problem/62834067>