[Android] Remove useless headers and annotations

Nicolas Pomepuy git at videolan.org
Wed May 18 09:57:58 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu May 12 07:13:57 2022 +0200| [70e27c5758bbdf51fb1e5fac7b05688f8627e928] | committer: Duncan McNamara

Remove useless headers and annotations

> https://code.videolan.org/videolan/vlc-android/commit/70e27c5758bbdf51fb1e5fac7b05688f8627e928
---

 .../main/java/org/videolan/vlc/database/WidgetDao.kt | 20 --------------------
 .../vlc/gui/dialogs/WidgetMigrationDialog.kt         |  6 +-----
 .../org/videolan/vlc/repository/WidgetRepository.kt  | 20 --------------------
 .../src/org/videolan/vlc/util/WidgetMigration.kt     |  4 ----
 .../vlc/widget/MiniPlayerAppWidgetProvider.kt        |  4 ----
 5 files changed, 1 insertion(+), 53 deletions(-)

diff --git a/application/mediadb/src/main/java/org/videolan/vlc/database/WidgetDao.kt b/application/mediadb/src/main/java/org/videolan/vlc/database/WidgetDao.kt
index c2dff70fc..2d049dd6f 100644
--- a/application/mediadb/src/main/java/org/videolan/vlc/database/WidgetDao.kt
+++ b/application/mediadb/src/main/java/org/videolan/vlc/database/WidgetDao.kt
@@ -22,26 +22,6 @@
  *
  */
 
-/*******************************************************************************
- *  BrowserFavDao.kt
- * ****************************************************************************
- * Copyright © 2018 VLC authors and VideoLAN
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- ******************************************************************************/
-
 package org.videolan.vlc.database
 
 import androidx.room.*
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/WidgetMigrationDialog.kt b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/WidgetMigrationDialog.kt
index af60cc71e..77b1c0a0b 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/WidgetMigrationDialog.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/WidgetMigrationDialog.kt
@@ -29,12 +29,8 @@ import android.view.LayoutInflater
 import android.view.View
 import android.view.ViewGroup
 import com.google.android.material.bottomsheet.BottomSheetBehavior.STATE_EXPANDED
-import kotlinx.coroutines.ExperimentalCoroutinesApi
-import kotlinx.coroutines.ObsoleteCoroutinesApi
 import org.videolan.vlc.databinding.DialogWidgetMigrationBinding
 
- at ExperimentalCoroutinesApi
- at ObsoleteCoroutinesApi
 class WidgetMigrationDialog : VLCBottomSheetDialogFragment() {
     override fun getDefaultState(): Int = STATE_EXPANDED
 
@@ -47,7 +43,7 @@ class WidgetMigrationDialog : VLCBottomSheetDialogFragment() {
 
 
 
-    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
+    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
         binding = DialogWidgetMigrationBinding.inflate(layoutInflater, container, false)
         return binding.root
     }
diff --git a/application/vlc-android/src/org/videolan/vlc/repository/WidgetRepository.kt b/application/vlc-android/src/org/videolan/vlc/repository/WidgetRepository.kt
index 3f55ee686..557ae9dc3 100644
--- a/application/vlc-android/src/org/videolan/vlc/repository/WidgetRepository.kt
+++ b/application/vlc-android/src/org/videolan/vlc/repository/WidgetRepository.kt
@@ -22,26 +22,6 @@
  *
  */
 
-/*******************************************************************************
- *  BrowserFavRepository.kt
- * ****************************************************************************
- * Copyright © 2018 VLC authors and VideoLAN
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- ******************************************************************************/
-
 package org.videolan.vlc.repository
 
 import android.content.Context
diff --git a/application/vlc-android/src/org/videolan/vlc/util/WidgetMigration.kt b/application/vlc-android/src/org/videolan/vlc/util/WidgetMigration.kt
index 751a68329..a183700c1 100644
--- a/application/vlc-android/src/org/videolan/vlc/util/WidgetMigration.kt
+++ b/application/vlc-android/src/org/videolan/vlc/util/WidgetMigration.kt
@@ -28,8 +28,6 @@ import android.appwidget.AppWidgetManager
 import android.content.ComponentName
 import android.content.pm.PackageManager
 import androidx.appcompat.app.AppCompatActivity
-import kotlinx.coroutines.ExperimentalCoroutinesApi
-import kotlinx.coroutines.ObsoleteCoroutinesApi
 import org.videolan.tools.Settings
 import org.videolan.tools.putSingle
 import org.videolan.vlc.gui.dialogs.WidgetMigrationDialog
@@ -38,8 +36,6 @@ import org.videolan.vlc.widget.VLCAppWidgetProviderWhite
 
 
 private const val WIDGET_MIGRATION_KEY = "widget_migration_key"
- at ObsoleteCoroutinesApi
- at ExperimentalCoroutinesApi
 object WidgetMigration {
     fun launchIfNeeded(context: AppCompatActivity) {
         val settings = Settings.getInstance(context)
diff --git a/application/vlc-android/src/org/videolan/vlc/widget/MiniPlayerAppWidgetProvider.kt b/application/vlc-android/src/org/videolan/vlc/widget/MiniPlayerAppWidgetProvider.kt
index fa8df5bfe..49fd65b30 100644
--- a/application/vlc-android/src/org/videolan/vlc/widget/MiniPlayerAppWidgetProvider.kt
+++ b/application/vlc-android/src/org/videolan/vlc/widget/MiniPlayerAppWidgetProvider.kt
@@ -42,8 +42,6 @@ import android.widget.RemoteViews
 import androidx.annotation.DrawableRes
 import androidx.core.content.getSystemService
 import androidx.palette.graphics.Palette
-import kotlinx.coroutines.ExperimentalCoroutinesApi
-import kotlinx.coroutines.ObsoleteCoroutinesApi
 import kotlinx.coroutines.launch
 import org.videolan.medialibrary.MLServiceLocator
 import org.videolan.medialibrary.interfaces.media.MediaWrapper
@@ -67,8 +65,6 @@ import org.videolan.vlc.widget.utils.*
 import java.util.*
 
 
- at ObsoleteCoroutinesApi
- at ExperimentalCoroutinesApi
 class MiniPlayerAppWidgetProvider : AppWidgetProvider() {
     private lateinit var _widgetRepository: WidgetRepository
     private val enableLogs = true



More information about the Android mailing list