Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused imports #344

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion openrndr-demos/src/demo/kotlin/DemoAnimation01.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import org.openrndr.animatable.Animatable
import org.openrndr.animatable.easing.Easing
import org.openrndr.application
import org.openrndr.math.Vector2
import org.openrndr.shape.contour

fun main() = application {
program {
Expand Down
5 changes: 2 additions & 3 deletions openrndr-demos/src/demo/kotlin/DemoColorBufferCopy01.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import org.openrndr.application
import org.openrndr.draw.*
import org.openrndr.extra.camera.Orbital
import org.openrndr.extra.meshgenerators.boxMesh
import org.openrndr.draw.createEquivalent
import org.openrndr.draw.loadImage

fun main() = application {
program {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.LineJoin
import org.openrndr.math.Vector2
import org.openrndr.shape.ShapeContour
import org.openrndr.shape.intersections
Expand Down
1 change: 0 additions & 1 deletion openrndr-demos/src/demo/kotlin/DemoGeometryShader01.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import org.openrndr.draw.Shader
import org.openrndr.extra.camera.Orbital
import org.openrndr.extra.meshgenerators.boxMesh
import org.openrndr.resourceText
import org.openrndr.resourceUrl

fun main() {
application {
Expand Down
8 changes: 4 additions & 4 deletions openrndr-demos/src/demo/kotlin/DemoImageLoadStore02.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.*
import org.openrndr.extra.meshgenerators.planeMesh
import org.openrndr.internal.Driver
import org.openrndr.math.Vector3
import org.openrndr.draw.ImageAccess
import org.openrndr.draw.colorBuffer
import org.openrndr.draw.imageBinding
import org.openrndr.draw.shadeStyle


fun main() = application {
Expand Down
2 changes: 1 addition & 1 deletion openrndr-demos/src/demo/kotlin/DemoLineDash01.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.shadeStyle
import org.openrndr.extensions.Screenshots
import org.openrndr.math.Polar
import org.openrndr.shape.contour

fun main() = application {
program {
val style = shadeStyle {
Expand Down
6 changes: 4 additions & 2 deletions openrndr-demos/src/demo/kotlin/DemoTessShader01.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.*
import org.openrndr.draw.DrawPrimitive
import org.openrndr.draw.Shader
import org.openrndr.draw.vertexBuffer
import org.openrndr.draw.vertexFormat
import org.openrndr.math.Vector3
import org.openrndr.resourceText
import org.openrndr.resourceUrl

fun main() {
application {
Expand Down
1 change: 0 additions & 1 deletion openrndr-demos/src/demo/kotlin/DemoTessShader02.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import org.openrndr.draw.Shader
import org.openrndr.draw.vertexBuffer
import org.openrndr.draw.vertexFormat
import org.openrndr.resourceText
import org.openrndr.resourceUrl
import org.openrndr.shape.Ellipse

fun main() {
Expand Down
1 change: 0 additions & 1 deletion openrndr-demos/src/demo/kotlin/DemoTessShader03.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import org.openrndr.draw.Shader
import org.openrndr.draw.vertexBuffer
import org.openrndr.draw.vertexFormat
import org.openrndr.resourceText
import org.openrndr.resourceUrl
import org.openrndr.shape.Ellipse

fun main() {
Expand Down
6 changes: 4 additions & 2 deletions openrndr-demos/src/demo/kotlin/DemoVolumeTexture01.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.*
import org.openrndr.extensions.Screenshots
import org.openrndr.draw.VolumeTexture
import org.openrndr.draw.colorBuffer
import org.openrndr.draw.isolatedWithTarget
import org.openrndr.draw.renderTarget

fun main() = application {
program {
Expand Down
2 changes: 0 additions & 2 deletions openrndr-demos/src/demo/kotlin/DrawerNegativeDimensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.extra.noise.Random
import org.openrndr.math.Vector2
import org.openrndr.shape.Rectangle

fun main() = application {
Expand Down
1 change: 0 additions & 1 deletion orx-camera/src/commonMain/kotlin/OrbitalControls.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import org.openrndr.*
import org.openrndr.math.Vector2
import org.openrndr.math.Vector3
import org.openrndr.math.asRadians
import kotlin.math.PI
import kotlin.math.abs
import kotlin.math.tan

Expand Down
4 changes: 1 addition & 3 deletions orx-camera/src/jvmDemo/kotlin/DemoParametricOrbital01.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import org.openrndr.extra.camera.*
import org.openrndr.extra.gui.GUI
import org.openrndr.extra.gui.addTo
import org.openrndr.extra.meshgenerators.boxMesh
import org.openrndr.extra.meshgenerators.sphereMesh
import org.openrndr.math.Vector3

fun main() = application {
configure {
Expand All @@ -34,4 +32,4 @@ fun main() = application {
drawer.vertexBuffer(bm, DrawPrimitive.TRIANGLES)
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import org.openrndr.extra.color.spaces.toOKHSLa
import org.openrndr.extra.parameters.*
import org.openrndr.math.Vector2
import org.openrndr.math.clamp
import org.openrndr.math.mod_
import kotlin.math.*

/*
Expand Down
2 changes: 0 additions & 2 deletions orx-color/src/commonMain/kotlin/statistics/Histogram.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
package org.openrndr.extra.color.statistics

import org.openrndr.color.ColorRGBa
import org.openrndr.draw.ColorBuffer
import kotlin.jvm.JvmName
import kotlin.random.Random

internal fun ColorRGBa.binIndex(binCount: Int): Triple<Int, Int, Int> {
val rb = (r * binCount).toInt().coerceIn(0, binCount - 1)
Expand Down
1 change: 0 additions & 1 deletion orx-color/src/jvmDemo/kotlin/DemoColorPlane01.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.*
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.camera.Orbital
import org.openrndr.extra.color.spaces.ColorOKLCHa
import org.openrndr.extra.meshgenerators.sphereMesh
Expand Down
1 change: 0 additions & 1 deletion orx-color/src/jvmDemo/kotlin/DemoColorPlane02.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.*
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.camera.Orbital
import org.openrndr.extra.color.spaces.ColorOKLCHa
import org.openrndr.extra.meshgenerators.sphereMesh
Expand Down
1 change: 0 additions & 1 deletion orx-color/src/jvmDemo/kotlin/DemoColorRange01.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.color.palettes.rangeTo
import org.openrndr.extra.color.spaces.toHSLUVa
import org.openrndr.math.Vector2
Expand Down
4 changes: 0 additions & 4 deletions orx-color/src/jvmDemo/kotlin/DemoColorRange02.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.isolated
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.color.palettes.colorSequence
import org.openrndr.extra.color.palettes.rangeTo
import org.openrndr.extra.color.presets.CORAL
import org.openrndr.extra.color.spaces.toHSLUVa

fun main() = application {
Expand Down
1 change: 0 additions & 1 deletion orx-color/src/jvmDemo/kotlin/DemoColorRange04.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import org.openrndr.color.ColorRGBa
import org.openrndr.draw.DrawPrimitive
import org.openrndr.draw.isolated
import org.openrndr.draw.loadFont
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.camera.Orbital
import org.openrndr.extra.color.palettes.rangeTo
import org.openrndr.extra.color.spaces.toHSLUVa
Expand Down
1 change: 0 additions & 1 deletion orx-color/src/jvmDemo/kotlin/DemoHSLUV01.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import org.openrndr.color.ColorRGBa
import org.openrndr.color.rgb
import org.openrndr.draw.isolated
import org.openrndr.draw.loadFont
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.color.spaces.ColorHSLUVa
import org.openrndr.math.Vector2
import org.openrndr.shape.Rectangle
Expand Down
1 change: 0 additions & 1 deletion orx-color/src/jvmDemo/kotlin/DemoHSLUV02.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.color.spaces.toHSLUVa
import org.openrndr.math.Polar
import org.openrndr.math.Vector2
Expand Down
1 change: 0 additions & 1 deletion orx-color/src/jvmDemo/kotlin/DemoHistogram01.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import org.openrndr.application
import org.openrndr.draw.loadImage
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.color.statistics.calculateHistogramRGB

fun main() = application {
Expand Down
1 change: 0 additions & 1 deletion orx-color/src/jvmDemo/kotlin/DemoHistogram02.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import org.openrndr.application
import org.openrndr.draw.loadImage
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.color.statistics.calculateHistogramRGB
import kotlin.math.pow

Expand Down
1 change: 0 additions & 1 deletion orx-color/src/jvmDemo/kotlin/DemoHistogram03.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import org.openrndr.application
import org.openrndr.draw.loadImage
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.color.statistics.calculateHistogramRGB

fun main() = application {
Expand Down
3 changes: 0 additions & 3 deletions orx-color/src/jvmDemo/kotlin/DemoHueTools01.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.isolated
import org.openrndr.extra.color.presets.NAVY
import org.openrndr.extra.color.spaces.OKHSV
import org.openrndr.extra.color.tools.hue
import org.openrndr.extra.color.tools.mixHue
import org.openrndr.extra.color.tools.withHue
import kotlin.math.cos

fun main() {
application {
Expand Down
1 change: 0 additions & 1 deletion orx-color/src/jvmDemo/kotlin/DemoXSLUV01.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.color.spaces.ColorXSLUVa
import org.openrndr.extra.color.spaces.toHSLUVa
import org.openrndr.math.Polar
Expand Down
1 change: 0 additions & 1 deletion orx-compositor/src/jvmDemo/kotlin/DemoCompositor01.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.color.rgb
import org.openrndr.draw.Drawer
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.compositor.compose
import org.openrndr.extra.compositor.draw
import org.openrndr.extra.compositor.layer
Expand Down
1 change: 0 additions & 1 deletion orx-envelopes/src/commonMain/kotlin/ADSR.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.openrndr.extra.envelopes

import org.openrndr.math.mix
import kotlin.jvm.JvmRecord
import kotlin.math.min

data class ADSR(
Expand Down
2 changes: 0 additions & 2 deletions orx-expression-evaluator-typed/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile

plugins {
org.openrndr.extra.convention.`kotlin-multiplatform`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import org.openrndr.math.Vector2
import org.openrndr.math.Vector3
import org.openrndr.math.Vector4
import org.openrndr.math.transforms.rotate
import org.openrndr.math.transforms.translate
import org.openrndr.math.min as min_
import org.openrndr.math.max as max_

import org.openrndr.math.min as min_
import kotlin.math.max as max_
import kotlin.math.min as min_

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import org.openrndr.color.ColorRGBa
import org.openrndr.extra.expressions.parser.KeyLangLexer
import org.openrndr.extra.expressions.parser.KeyLangParser
import org.openrndr.extra.expressions.parser.KeyLangParserBaseListener
import org.openrndr.extra.expressions.parser.KeyLangParserVisitor

import org.openrndr.extra.noise.uniform
import org.openrndr.math.*
import kotlin.math.*
import kotlin.math.PI
import kotlin.math.roundToInt

typealias TypedFunction0 = () -> Any
typealias TypedFunction1 = (Any) -> Any
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import org.openrndr.application
import org.openrndr.extra.expressions.evaluateExpression
import org.openrndr.extra.expressions.watchingExpression1
import org.openrndr.extra.gui.GUI
import org.openrndr.extra.gui.addTo
Expand Down
1 change: 0 additions & 1 deletion orx-fcurve/src/commonMain/kotlin/FCurve.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import org.openrndr.math.transforms.buildTransform
import org.openrndr.shape.Segment2D
import org.openrndr.shape.ShapeContour
import org.openrndr.shape.bounds
import kotlin.jvm.JvmRecord
import kotlin.math.abs

/**
Expand Down
3 changes: 1 addition & 2 deletions orx-fft/src/jvmDemo/kotlin/DemoFFTShape01.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import org.openrndr.application

import org.openrndr.color.ColorRGBa
import org.openrndr.extra.fft.FFT
import org.openrndr.extra.noise.scatter
import org.openrndr.extra.shapes.hobbycurve.hobbyCurve
import org.openrndr.math.Vector2
import org.openrndr.extra.shapes.splines.catmullRom
import org.openrndr.extra.shapes.splines.toContour
import org.openrndr.math.Vector2
import org.openrndr.math.smoothstep
import org.openrndr.math.transforms.buildTransform
import org.openrndr.shape.LineSegment
Expand Down
2 changes: 0 additions & 2 deletions orx-fx/src/commonMain/kotlin/FilterTools.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import org.openrndr.draw.ColorFormat
import org.openrndr.draw.ColorType
import org.openrndr.draw.Shader
import org.openrndr.draw.filterShaderFromCode
import org.openrndr.internal.Driver
import org.openrndr.resourceUrl

fun mppFilterShader(code: String, name: String) : Shader = filterShaderFromCode(code, name, includeShaderConfiguration = true)

Expand Down
1 change: 0 additions & 1 deletion orx-fx/src/commonMain/kotlin/antialias/FXAA.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

package org.openrndr.extra.fx.antialias

import org.openrndr.draw.Filter
import org.openrndr.draw.Filter1to1
import org.openrndr.extra.fx.fx_fxaa
import org.openrndr.extra.fx.mppFilterShader
Expand Down
1 change: 0 additions & 1 deletion orx-fx/src/commonMain/kotlin/blend/BlendFilters.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

package org.openrndr.extra.fx.blend

import org.openrndr.draw.Filter
import org.openrndr.draw.Filter1to1
import org.openrndr.draw.Filter2to1
import org.openrndr.extra.fx.*
Expand Down
1 change: 0 additions & 1 deletion orx-fx/src/commonMain/kotlin/blur/HashBlur.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

package org.openrndr.extra.fx.blur

import org.openrndr.draw.Filter
import org.openrndr.draw.Filter1to1
import org.openrndr.draw.Filter2to1
import org.openrndr.draw.Filter3to1
Expand Down
1 change: 0 additions & 1 deletion orx-fx/src/commonMain/kotlin/color/ColorMix.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
package org.openrndr.extra.fx.color

import org.openrndr.color.ColorRGBa
import org.openrndr.draw.Filter
import org.openrndr.draw.Filter1to1
import org.openrndr.extra.fx.fx_color_mix
import org.openrndr.extra.fx.fx_color_tint
Expand Down
6 changes: 1 addition & 5 deletions orx-fx/src/commonMain/kotlin/color/Colorspaces.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
package org.openrndr.extra.fx.color

import org.openrndr.draw.Filter
import org.openrndr.draw.Filter1to1
import org.openrndr.extra.color.phrases.ColorPhraseBook
import org.openrndr.extra.fx.*
import org.openrndr.extra.fx.fx_rgb_to_oklab
import org.openrndr.extra.fx.fx_rgb_to_ycbcr
import org.openrndr.extra.fx.fx_ycbcr_to_rgb
import org.openrndr.extra.shaderphrases.preprocess
import org.openrndr.extra.color.phrases.ColorPhraseBook

class RgbToYCbcr : Filter1to1(mppFilterShader(fx_rgb_to_ycbcr, "rgb-to-ycbcr"))
class YcbcrToRgb : Filter1to1(mppFilterShader(fx_ycbcr_to_rgb, "ycbcr_to_rgb"))
Expand Down
Loading
Loading