Skip to content

Commit 6eeef4a

Browse files
committed
Remove unused variables.
1 parent 692b562 commit 6eeef4a

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

examples/movie-app/src/App.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ const fetchMovieReviews = ({ id }) =>
2727
.then(data => data.results)
2828
.then(delay(1500))
2929

30-
const iconRoot = "https://staticv2-4.rottentomatoes.com/static/images/icons/"
31-
const iconFile = {
32-
certified_fresh: "CF_16x16.png",
33-
fresh: "fresh-16.png",
34-
upright: "popcorn-16.png",
35-
rotten: "splat-16.png",
36-
spilled: "badpopcorn-16.png",
37-
wts: "wts-16.png",
38-
}
39-
4030
const Movie = ({ title, vote_average, release_date, onSelect, overview, backdrop_path }) => (
4131
<div
4232
className="Movie"
@@ -81,16 +71,6 @@ const Review = ({ author, content }) => (
8171
</div>
8272
)
8373

84-
const Image = props => {
85-
const loadImage = src =>
86-
new Promise(resolve => {
87-
const image = new Image()
88-
image.onload = () => resolve(src)
89-
image.src = props.src
90-
})
91-
return <img {...props} />
92-
}
93-
9474
const Details = ({ onBack, id }) => (
9575
<div className="Details">
9676
<button onClick={onBack}>

0 commit comments

Comments
 (0)