Skip to content

Commit

Permalink
Remove redundant NOTHING_TO_INLINE suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Nov 27, 2024
1 parent 75c4bd5 commit cf96878
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import js.reflect.unsafeCast

external interface ResponsiveStyleValue<T : Any>

@Suppress("NOTHING_TO_INLINE")
inline fun <T : Any> responsive(
value: T,
): ResponsiveStyleValue<T> =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package node.util.types
import js.collections.JsMap
import kotlin.contracts.contract

@Suppress("NOTHING_TO_INLINE")
inline fun isMap(target: Any?): Boolean {
contract {
returns(true) implies (target is JsMap<*, *>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package node.util.types
import js.collections.JsSet
import kotlin.contracts.contract

@Suppress("NOTHING_TO_INLINE")
inline fun isSet(target: Any?): Boolean {
contract {
returns(true) implies (target is JsSet<*>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export default {
const returnType = render(actionFunctionSignatureNode.type)

return `
@Suppress("NOTHING_TO_INLINE")
inline fun ${karakum.ifPresent(typeParameters, it => `<${it}>`)} ActionFunction(
noinline value: (${parameters}) -> ${returnType},
): ActionFunction${karakum.ifPresent(typeParameterNames, it => `<${it}>`)} =
Expand Down Expand Up @@ -125,7 +124,6 @@ inline fun ${karakum.ifPresent(typeParameters, it => `<${it}>`)} ActionFunction(
const returnType = render(loaderFunctionSignatureNode.type)

return `
@Suppress("NOTHING_TO_INLINE")
inline fun ${karakum.ifPresent(typeParameters, it => `<${it}>`)} LoaderFunction(
noinline value: (${parameters}) -> ${returnType},
): LoaderFunction${karakum.ifPresent(typeParameterNames, it => `<${it}>`)} =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
package remix.run.router


@Suppress("NOTHING_TO_INLINE")
inline fun <Context /* default is Any? */> ActionFunction(
noinline value: (args: ActionFunctionArgs<Context>, handlerCtx: Any? /* use undefined for default */) -> DataFunctionReturnValue,
): ActionFunction<Context> =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
package remix.run.router


@Suppress("NOTHING_TO_INLINE")
inline fun <Context /* default is Any? */> LoaderFunction(
noinline value: (args: LoaderFunctionArgs<Context>, handlerCtx: Any? /* use undefined for default */) -> DataFunctionReturnValue,
): LoaderFunction<Context> =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ fun injectGlobal(css: RuleSet) {
}.apply { injectGlobal(this) }
}

@Suppress("NOTHING_TO_INLINE")
internal inline fun isDevelopment() = js("process.env.NODE_ENV !== 'production'") as Boolean

object GlobalStyles {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ inline fun CustomStyledProps.css(noinline handler: RuleSet) {
css = (css ?: CssBuilder(isHolder = true)).apply(handler)
}

@Suppress("NOTHING_TO_INLINE")
inline fun <P : CustomStyledProps> RElementBuilder<P>.css(noinline handler: RuleSet) = attrs.css(handler)

internal external interface StyledProps : PropsWithClassName, PropsWithRef<Any> {
Expand Down

0 comments on commit cf96878

Please sign in to comment.