Skip to content

Commit

Permalink
Suppress UnusedSymbol and UnusedReceiverParameter warnings globally. (#…
Browse files Browse the repository at this point in the history
…1233)

* Suppress UnusedSymbol and UnusedReceiverParameter warnings globally.

* Clean up.
  • Loading branch information
colinrtwhite committed Apr 13, 2022
1 parent 09da767 commit 379f614
Show file tree
Hide file tree
Showing 27 changed files with 14 additions and 35 deletions.
2 changes: 2 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion coil-base/src/main/java/coil/ComponentRegistry.kt
@@ -1,4 +1,4 @@
@file:Suppress("UNCHECKED_CAST", "unused")
@file:Suppress("UNCHECKED_CAST")

package coil

Expand Down
2 changes: 1 addition & 1 deletion coil-base/src/main/java/coil/ImageLoader.kt
@@ -1,4 +1,4 @@
@file:Suppress("unused", "UNUSED_PARAMETER")
@file:Suppress("UNUSED_PARAMETER")

package coil

Expand Down
1 change: 0 additions & 1 deletion coil-base/src/main/java/coil/ImageLoaders.kt
@@ -1,5 +1,4 @@
@file:JvmName("ImageLoaders")
@file:Suppress("unused")

package coil

Expand Down
2 changes: 0 additions & 2 deletions coil-base/src/main/java/coil/disk/DiskCache.kt
@@ -1,5 +1,3 @@
@file:Suppress("unused")

package coil.disk

import android.os.StatFs
Expand Down
2 changes: 0 additions & 2 deletions coil-base/src/main/java/coil/memory/MemoryCache.kt
@@ -1,5 +1,3 @@
@file:Suppress("unused")

package coil.memory

import android.content.ComponentCallbacks2
Expand Down
2 changes: 0 additions & 2 deletions coil-base/src/main/java/coil/network/HttpException.kt
@@ -1,5 +1,3 @@
@file:Suppress("MemberVisibilityCanBePrivate")

package coil.network

import coil.fetch.HttpUriFetcher
Expand Down
2 changes: 0 additions & 2 deletions coil-base/src/main/java/coil/request/CachePolicy.kt
@@ -1,5 +1,3 @@
@file:Suppress("unused")

package coil.request

/**
Expand Down
2 changes: 1 addition & 1 deletion coil-base/src/main/java/coil/request/ImageRequest.kt
@@ -1,4 +1,4 @@
@file:Suppress("unused", "UNUSED_PARAMETER")
@file:Suppress("UNUSED_PARAMETER")

package coil.request

Expand Down
3 changes: 1 addition & 2 deletions coil-base/src/main/java/coil/request/Parameters.kt
@@ -1,5 +1,3 @@
@file:Suppress("UNCHECKED_CAST", "unused")

package coil.request

import coil.decode.Decoder
Expand All @@ -26,6 +24,7 @@ class Parameters private constructor(
val size: Int @JvmName("size") get() = entries.size

/** Returns the value associated with [key] or null if [key] has no mapping. */
@Suppress("UNCHECKED_CAST")
fun <T : Any> value(key: String): T? = entries[key]?.value as T?

/** Returns the cache key associated with [key] or null if [key] has no mapping. */
Expand Down
1 change: 0 additions & 1 deletion coil-base/src/main/java/coil/size/Size.kt
@@ -1,5 +1,4 @@
@file:JvmName("-Sizes")
@file:Suppress("unused")

package coil.size

Expand Down
@@ -1,5 +1,3 @@
@file:Suppress("unused")

package coil.transform

import android.graphics.Bitmap
Expand Down
@@ -1,5 +1,3 @@
@file:Suppress("unused")

package coil.transform

import android.graphics.Bitmap
Expand Down
2 changes: 0 additions & 2 deletions coil-base/src/main/java/coil/util/DebugLogger.kt
@@ -1,5 +1,3 @@
@file:Suppress("unused")

package coil.util

import android.util.Log
Expand Down
@@ -1,4 +1,4 @@
@file:Suppress("NOTHING_TO_INLINE", "unused", "UNUSED_PARAMETER")
@file:Suppress("NOTHING_TO_INLINE", "UNUSED_PARAMETER")

package coil.compose

Expand Down
@@ -1,4 +1,4 @@
@file:Suppress("DEPRECATION", "unused")
@file:Suppress("DEPRECATION")

package coil.compose

Expand Down
@@ -1,4 +1,4 @@
@file:Suppress("DEPRECATION", "unused")
@file:Suppress("DEPRECATION")

package coil.compose

Expand Down
@@ -1,4 +1,4 @@
@file:Suppress("DEPRECATION", "unused")
@file:Suppress("DEPRECATION")

package coil.compose

Expand Down
@@ -1,4 +1,4 @@
@file:Suppress("NOTHING_TO_INLINE", "unused", "UNUSED_PARAMETER")
@file:Suppress("NOTHING_TO_INLINE", "UNUSED_PARAMETER")

package coil.compose

Expand Down
@@ -1,4 +1,4 @@
@file:Suppress("DEPRECATION", "unused")
@file:Suppress("DEPRECATION")

package coil.compose

Expand Down
1 change: 0 additions & 1 deletion coil-gif/src/main/java/coil/decode/DecodeUtils.kt
@@ -1,5 +1,4 @@
@file:JvmName("GifDecodeUtils")
@file:Suppress("unused")

package coil.decode

Expand Down
2 changes: 1 addition & 1 deletion coil-gif/src/main/java/coil/drawable/MovieDrawable.kt
@@ -1,4 +1,4 @@
@file:Suppress("DEPRECATION", "unused")
@file:Suppress("DEPRECATION")

package coil.drawable

Expand Down
1 change: 0 additions & 1 deletion coil-gif/src/main/java/coil/request/Gifs.kt
@@ -1,4 +1,3 @@
@file:Suppress("UNCHECKED_CAST", "unused")
@file:JvmName("Gifs")

package coil.request
Expand Down
2 changes: 0 additions & 2 deletions coil-sample-common/src/main/java/coil/sample/Application.kt
@@ -1,5 +1,3 @@
@file:Suppress("unused")

package coil.sample

import android.app.Application
Expand Down
2 changes: 1 addition & 1 deletion coil-singleton/src/main/java/coil/Extensions.kt
@@ -1,5 +1,5 @@
@file:JvmName("-SingletonExtensions")
@file:Suppress("NOTHING_TO_INLINE", "unused")
@file:Suppress("NOTHING_TO_INLINE")

package coil

Expand Down
1 change: 0 additions & 1 deletion coil-svg/src/main/java/coil/decode/DecodeUtils.kt
@@ -1,5 +1,4 @@
@file:JvmName("SvgDecodeUtils")
@file:Suppress("unused")

package coil.decode

Expand Down
1 change: 0 additions & 1 deletion coil-video/src/main/java/coil/request/Videos.kt
@@ -1,4 +1,3 @@
@file:Suppress("unused")
@file:JvmName("Videos")

package coil.request
Expand Down

0 comments on commit 379f614

Please sign in to comment.