Removed obsolete workaround for KT-1752.

This commit is contained in:
Evgeny Gerashchenko
2014-01-27 22:03:51 +04:00
parent a1fa230d82
commit 15bba63dc1
4 changed files with 0 additions and 215 deletions
@@ -1,19 +0,0 @@
package kotlin.beans
import java.beans.*
// TODO this file may be deleted when this issue is implemented
// http://youtrack.jetbrains.com/issue/KT-1752
/**
* Creates a [[PropertyChangeListener]] for the given function for processing each [[PropertyChangeEvent]]
*/
fun propertyChangeListener(fn: (PropertyChangeEvent) -> Unit): PropertyChangeListener = FunctionPropertyChangeListener(fn)
private class FunctionPropertyChangeListener(val fn: (PropertyChangeEvent) -> Unit) : PropertyChangeListener {
public override fun propertyChange(e: PropertyChangeEvent) {
if (e != null) {
(fn)(e)
}
}
}