diff --git a/utils/utils.android.ts b/utils/utils.android.ts deleted file mode 100644 index 3acfe9f2f..000000000 --- a/utils/utils.android.ts +++ /dev/null @@ -1,24 +0,0 @@ -export class Collections { - public static stringArrayToStringSet(str: string[]): any { - var hashSet = new java.util.HashSet(); - if ("undefined" != typeof str) { - for (var element in str) { - hashSet.add('' + str[element]); - } - } - return hashSet; - } - - public static stringSetToStringArray(stringSet: any): string[] { - var arr = []; - if ("undefined" != typeof stringSet) { - var it = stringSet.iterator(); - while (it.hasNext()) { - var element = '' + it.next(); - arr.push(element); - } - } - - return arr; - } -} \ No newline at end of file diff --git a/utils/utils.d.ts b/utils/utils.d.ts deleted file mode 100644 index 89391242a..000000000 --- a/utils/utils.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Timer functions. - */ -export declare function setTimeout(callback: Function, milliseconds?: number): number; -export declare function clearTimeout(id: number): void; -export declare function setInterval(callback: Function, milliseconds?: number): number; -export declare function clearInterval(id: number): void; \ No newline at end of file diff --git a/utils/utils.ios.ts b/utils/utils.ios.ts deleted file mode 100644 index d355c3252..000000000 --- a/utils/utils.ios.ts +++ /dev/null @@ -1,22 +0,0 @@ -export class Collections { - public static jsArrayToNSArray(str: string[]): any { - var arr = new Foundation.NSMutableArray(); - if ("undefined" != typeof str) { - for (var element in str) { - arr.addObject(str[element]); - } - } - return arr; - } - - public static nsArrayToJSArray(a: any): string[] { - var arr = []; - if ("undefined" != typeof a) { - for (var i = 0; i < a.count(); i++) { - arr.push(a.objectAtIndex(i)); - } - } - - return arr; - } -} \ No newline at end of file