Skip to content

Commit f2b4671

Browse files
author
Alex Ames
committed
Minor fixes to RegistrationIntentService
1 parent 226de09 commit f2b4671

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

messaging/src/android/java/com/google/firebase/messaging/cpp/RegistrationIntentService.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import android.content.Context;
1818
import android.content.Intent;
19+
import androidx.core.app.JobIntentService;
1920
import com.google.firebase.iid.FirebaseInstanceId;
2021
import com.google.flatbuffers.FlatBufferBuilder;
2122
import java.io.FileOutputStream;
@@ -36,15 +37,6 @@ public RegistrationIntentService() {
3637
super(TAG);
3738
}
3839

39-
/**
40-
* Convenience wrapper over enqueueWork to either directly start the service (when running on
41-
* pre-O platforms) or enqueue work for it as a job (when running on Android O and later).
42-
*/
43-
public static void enqueueWork(Context context, Intent intent) {
44-
enqueueWork(
45-
context, RegistrationIntentService.class, JobIds.REGISTRATION_INTENT_SERVICE, intent);
46-
}
47-
4840
// Fetch the latest registration token and notify the C++ layer.
4941
@Override
5042
protected void onHandleWork(@NonNull Intent intent) {

0 commit comments

Comments
 (0)