From bb45e5ad83dbe92080ade5c9dfadf0852d8e5211 Mon Sep 17 00:00:00 2001 From: otya128 Date: Sun, 18 Dec 2016 13:25:10 +0900 Subject: [PATCH] Fix import --- SMILEBASIC/builtinfunctions.d | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/SMILEBASIC/builtinfunctions.d b/SMILEBASIC/builtinfunctions.d index eba0dcb..9960ac1 100644 --- a/SMILEBASIC/builtinfunctions.d +++ b/SMILEBASIC/builtinfunctions.d @@ -8,7 +8,7 @@ import std.stdio; import std.ascii; import std.range; import std.string; -import std.algorithm.sorting; +import std.algorithm; import otya.smilebasic.error; import otya.smilebasic.type; import otya.smilebasic.petitcomputer; @@ -481,7 +481,6 @@ class BuiltinFunction } static void GCLIP(PetitComputer p, int clipmode, int sx, int sy, int ex, int ey) { - import std.algorithm : swap; if (sx < 0 || sy < 0 || ex < 0 || ey < 0) throw new OutOfRange("GCLIP"); if (clipmode) @@ -2544,7 +2543,6 @@ class BuiltinFunction } static double MAX(Value array) { - import std.algorithm.searching; if (array.type == ValueType.IntegerArray) { return minPos!"a > b"(array.integerArray.array)[0]; @@ -2557,7 +2555,6 @@ class BuiltinFunction } static double MAX(Value[] args) { - import std.algorithm.searching; if (args.length == 0) { throw new IllegalFunctionCall("MAX"); @@ -2566,7 +2563,6 @@ class BuiltinFunction } static double MIN(Value array) { - import std.algorithm.searching; if (array.type == ValueType.IntegerArray) { return minPos!"a < b"(array.integerArray.array)[0]; @@ -2579,7 +2575,6 @@ class BuiltinFunction } static double MIN(Value[] args) { - import std.algorithm.searching; if (args.length == 0) { throw new IllegalFunctionCall("MIN");