# HG changeset patch # User Frank Benoit # Date 1234981595 -3600 # Node ID f866e80af235686afb289926a9f1cc959b4f9202 # Parent 47b37f12674089f7de5298216a55e4682c85e449 Remove tango deprecation warnings. diff -r 47b37f126740 -r f866e80af235 dwt/dwthelper/ByteArrayOutputStream.d --- a/dwt/dwthelper/ByteArrayOutputStream.d Wed Feb 18 17:10:51 2009 +0100 +++ b/dwt/dwthelper/ByteArrayOutputStream.d Wed Feb 18 19:26:35 2009 +0100 @@ -5,18 +5,18 @@ public import dwt.dwthelper.OutputStream; import dwt.dwthelper.utils; -import tango.io.Buffer; +import tango.io.device.Array; public class ByteArrayOutputStream : dwt.dwthelper.OutputStream.OutputStream { - protected GrowBuffer buffer; + protected Array buffer; public this (){ - buffer = new GrowBuffer(); + buffer = new Array(); } public this ( int par_size ){ - buffer = new GrowBuffer(par_size); + buffer = new Array(par_size); } public synchronized override void write( int b ){ diff -r 47b37f126740 -r f866e80af235 dwt/dwthelper/FileInputStream.d --- a/dwt/dwthelper/FileInputStream.d Wed Feb 18 17:10:51 2009 +0100 +++ b/dwt/dwthelper/FileInputStream.d Wed Feb 18 19:26:35 2009 +0100 @@ -12,7 +12,6 @@ } else { import TangoFile = tango.io.FileConduit; } -import tango.io.protocol.Reader; import tango.core.Exception; import tango.text.convert.Format; diff -r 47b37f126740 -r f866e80af235 dwt/dwthelper/ResourceBundle.d --- a/dwt/dwthelper/ResourceBundle.d Wed Feb 18 17:10:51 2009 +0100 +++ b/dwt/dwthelper/ResourceBundle.d Wed Feb 18 19:26:35 2009 +0100 @@ -8,7 +8,7 @@ import dwt.DWT; import dwt.dwthelper.utils; -import tango.io.File; +import tango.io.device.File; import tango.text.locale.Core; class ResourceBundle { @@ -168,8 +168,7 @@ } public static ResourceBundle getBundle( String name ){ try{ - scope f = new File(name); - return new ResourceBundle( cast(String) f.read() ); + return new ResourceBundle( cast(String) File.get(name) ); } catch( IOException e){ e.msg ~= " file:" ~ name; diff -r 47b37f126740 -r f866e80af235 dwt/dwthelper/utils.d --- a/dwt/dwthelper/utils.d Wed Feb 18 17:10:51 2009 +0100 +++ b/dwt/dwthelper/utils.d Wed Feb 18 19:26:35 2009 +0100 @@ -10,7 +10,7 @@ public import tango.core.Exception : IllegalArgumentException, IOException; import tango.io.Stdout; -import tango.io.Print; +import tango.io.stream.Format; static import tango.stdc.stringz; static import tango.text.Util; static import tango.text.Text; diff -r 47b37f126740 -r f866e80af235 dwt/internal/win32/OS.d --- a/dwt/internal/win32/OS.d Wed Feb 18 17:10:51 2009 +0100 +++ b/dwt/internal/win32/OS.d Wed Feb 18 19:26:35 2009 +0100 @@ -35,8 +35,7 @@ import tango.stdc.string : memset, strlen; import tango.stdc.stringz : toString16z; import tango.text.convert.Utf : toString16; -static import tango.io.TempFile; -import tango.io.File; +//import tango.io.device.File; import tango.io.Console;