Closed Bug 839622 Opened 11 years ago Closed 11 years ago

Various JNI-related functions are not used and can be removed

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 21

People

(Reporter: kats, Assigned: kats)

Details

Attachments

(3 files, 1 obsolete file)

See patches
Attachment #711944 - Flags: review?(cpeterson)
Whoops, wrong patch file.
Attachment #711946 - Attachment is obsolete: true
Attachment #711946 - Flags: review?(blassey.bugs)
Attachment #711948 - Flags: review?(blassey.bugs)
Comment on attachment 711948 [details] [diff] [review]
Part 3/3 - Don't include websms JNI goop if we're not building websms

Review of attachment 711948 [details] [diff] [review]:
-----------------------------------------------------------------

::: mozglue/android/jni-stubs.inc
@@ -455,5 @@
> -  xul_dlsym("Java_org_mozilla_gecko_GeckoAppShell_notifyReadingMessageListFailed", &f_Java_org_mozilla_gecko_GeckoAppShell_notifyReadingMessageListFailed);
> -#endif
> -
> -#ifdef JNI_STUBS
> -

rather than deleting all of this, can you just put it in an ifdef MOZ_WEBSMS_BACKEND
Attachment #711948 - Flags: review?(blassey.bugs) → review+
(In reply to Brad Lassey [:blassey] from comment #4)
> 
> rather than deleting all of this, can you just put it in an ifdef
> MOZ_WEBSMS_BACKEND

Not without significantly changing how that file is autogenerated. (One of the changes would require building GeckoSmsManager.java even though it is not used).
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #5)
> (In reply to Brad Lassey [:blassey] from comment #4)
> > 
> > rather than deleting all of this, can you just put it in an ifdef
> > MOZ_WEBSMS_BACKEND
> 
> Not without significantly changing how that file is autogenerated. (One of
> the changes would require building GeckoSmsManager.java even though it is
> not used).

Right, this is the autogenerted file. And this problem will go away when we make the autogeneration part of the build process, right?
Comment on attachment 711944 [details] [diff] [review]
Part 1/3 - Clean up temp files

Review of attachment 711944 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM
Attachment #711944 - Flags: review?(cpeterson) → review+
Comment on attachment 711945 [details] [diff] [review]
Part 2/3 - Remove unused functions/implementations

Review of attachment 711945 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM!
Attachment #711945 - Flags: review?(cpeterson) → review+
(In reply to Brad Lassey [:blassey] from comment #6)
> Right, this is the autogenerted file. And this problem will go away when we
> make the autogeneration part of the build process, right?

Right.
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: