Hivinau.graffe
Hivinau.graffe

Reputation: 1

Unused variable 'frame'

Does that make sense frame is not used on https://github.com/hivinau/material-components-ios/blob/develop/components/FlexibleHeader/src/MDCFlexibleHeaderContainerViewController.m (line 51) ?

Upvotes: -5

Views: 67

Answers (1)

CRD
CRD

Reputation: 53000

It makes sense as you declare frame, give it an initial value, modify two of its fields, then discard it – so the whole operation was pointless. The compiler has been kind to you in catching this. HTH

Upvotes: 3

Related Questions