Closed Bug 848226 Opened 11 years ago Closed 11 years ago

[Settings] Remove useless code

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: masashi.honma, Unassigned)

Details

Attachments

(1 file, 2 obsolete files)

On gaia/apps/settings/js/wallpaper.js#onPickSuccess 'a.result.url' is not defined at the moment.

Setting it to self.preview.src and 'wallpaper.image' should be done in reader.onload.

So I removed these lines.
See PR #8486.
Pointer to Github pull-request
Attachment #722560 - Attachment mime type: text/plain → text/html
Attachment #722560 - Flags: review?(dflanagan)
Comment on attachment 722560 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/8486/files

Thank you for this patch. Sorry it has taken me so long to review it.

This isn't just useless code, its a real bug, and we should land this patch. Github is reporting that it will not merge cleanly. I can't see why because it looks good to me. If you investigate and fix the pull request, just email me and I'll land it.
Attachment #722560 - Flags: review?(dflanagan) → review+
Pointer to Github pull-request
Attachment #725809 - Attachment is obsolete: true
Attachment #725809 - Attachment mime type: text/plain → text/html
Pointer to Github pull-request
Attachment #725812 - Attachment mime type: text/plain → text/html
Attachment #725812 - Flags: review?(dflanagan)
I modified the patch. See PR 8691.
Comment on attachment 725812 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/8691

Looks good.
Attachment #725812 - Flags: review?(dflanagan) → review+
Attachment #722560 - Attachment is obsolete: true
Merged into master: https://github.com/mozilla-b2g/gaia/commit/d9a4ac0b9f88edc33c40aef65ea60239f9b4bb37
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: