From 9b81b7ea195cf2e6c47ad0e62192ba3cd78753f9 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 3 Apr 2023 19:04:25 -0700 Subject: [PATCH] Remove unused code. --- .../java/net/voussoir/trkpt/TrackerService.kt | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/app/src/main/java/net/voussoir/trkpt/TrackerService.kt b/app/src/main/java/net/voussoir/trkpt/TrackerService.kt index fdd1765..c538946 100644 --- a/app/src/main/java/net/voussoir/trkpt/TrackerService.kt +++ b/app/src/main/java/net/voussoir/trkpt/TrackerService.kt @@ -70,7 +70,6 @@ class TrackerService: Service() private lateinit var notificationManager: NotificationManager private lateinit var notification_builder: NotificationCompat.Builder - val beeper = ToneGenerator(AudioManager.STREAM_MUSIC, 100) private lateinit var locationManager: LocationManager private lateinit var gpsLocationListener: LocationListener @@ -245,8 +244,6 @@ class TrackerService: Service() { Log.i("VOUSSOIR", "Processing point ${location.time} ${location.latitude}, ${location.longitude}.") - // beeper.startTone(ToneGenerator.TONE_PROP_ACK, 150) - if (location.time <= currentBestLocation.time) { return @@ -441,36 +438,6 @@ class TrackerService: Service() notificationManager.createNotificationChannel(notificationChannel) } - /* Notification pending intents */ - // private val stopActionPendingIntent = PendingIntent.getService( - // this, - // 14, - // Intent(this, TrackerService::class.java).setAction(Keys.ACTION_STOP), - // PendingIntent.FLAG_IMMUTABLE - // ) - // private val resumeActionPendingIntent = PendingIntent.getService( - // this, - // 16, - // Intent(this, TrackerService::class.java).setAction(Keys.ACTION_START), - // PendingIntent.FLAG_IMMUTABLE - // ) - /* Notification actions */ - // private val stopAction = NotificationCompat.Action( - // R.drawable.ic_notification_action_stop_24dp, - // this.getString(R.string.notification_pause), - // stopActionPendingIntent - // ) - // private val resumeAction = NotificationCompat.Action( - // R.drawable.ic_notification_action_resume_36dp, - // this.getString(R.string.notification_resume), - // resumeActionPendingIntent - // ) - // private val showAction = NotificationCompat.Action( - // R.drawable.ic_notification_action_show_36dp, - // this.getString(R.string.notification_show), - // showActionPendingIntent - // ) - /* Overrides onBind from Service */ override fun onBind(p0: Intent?): IBinder {