mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 21:21:33 +00:00
common: unused marker for marking values as unused intentionally
This commit is contained in:
9
common/src/main/kotlin/gay/pizza/pork/common/Globals.kt
Normal file
9
common/src/main/kotlin/gay/pizza/pork/common/Globals.kt
Normal file
@ -0,0 +1,9 @@
|
||||
package gay.pizza.pork.common
|
||||
|
||||
@Suppress("NOTHING_TO_INLINE", "UnusedReceiverParameter", "unused")
|
||||
inline fun Any?.markIsUnused() {}
|
||||
|
||||
@Suppress("NOTHING_TO_INLINE", "unused")
|
||||
inline fun unused(value: Any?) {
|
||||
value.markIsUnused()
|
||||
}
|
Reference in New Issue
Block a user