diff --git a/tns-core-modules/ui/builder/special-properties.d.ts b/tns-core-modules/ui/builder/special-properties.d.ts deleted file mode 100644 index f49cc330b..000000000 --- a/tns-core-modules/ui/builder/special-properties.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { View } from "ui/core/view"; - -export type PropertySetter = (instance: View, propertyValue: any) => void; -export function registerSpecialProperty(name: string, setter: PropertySetter): void; -export function getSpecialPropertySetter(name: string): PropertySetter; diff --git a/tns-core-modules/ui/builder/special-properties.ts b/tns-core-modules/ui/builder/special-properties.ts deleted file mode 100644 index e7dcf19cd..000000000 --- a/tns-core-modules/ui/builder/special-properties.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { View } from "../core/view"; - -export type PropertySetter = (instance: View, propertyValue: any) => void; - -var specialProperties: Map = new Map(); - -function specialPropertyKey(name: string) { - return name.toLowerCase(); -} - -export function registerSpecialProperty(name: string, setter: PropertySetter): void { - let propertyKey = specialPropertyKey(name); - if (specialProperties.has(propertyKey)) { - throw new Error(`Property for ${propertyKey} already registered`); - } else { - specialProperties.set(propertyKey, setter); - } -} - -export function getSpecialPropertySetter(name: string): PropertySetter { - let propertyKey = specialPropertyKey(name); - return specialProperties.get(propertyKey); -}