# HG changeset patch # User Frank Benoit # Date 1217033545 -7200 # Node ID 9d67c3170a58b711889745b80f5ee99b0cd473bb # Parent 5983f0f1189660e1bd3841d7be5d2e6100104217 Removed version=TANGOSVN for release 0.99.7 diff -r 5983f0f11896 -r 9d67c3170a58 dwt/custom/DefaultContent.d --- a/dwt/custom/DefaultContent.d Mon Jul 21 22:38:49 2008 +0200 +++ b/dwt/custom/DefaultContent.d Sat Jul 26 02:52:25 2008 +0200 @@ -23,23 +23,13 @@ import dwt.custom.StyledText; import dwt.dwthelper.utils; -version(TANGOSVN) { - static import tango.io.model.IFile; -} -else{ - static import tango.io.FileConst; -} +static import tango.io.model.IFile; static import tango.text.Text; alias tango.text.Text.Text!(char) StringBuffer; class DefaultContent : StyledTextContent { -version(TANGOSVN) { private final static String LineDelimiter = tango.io.model.IFile.FileConst.NewlineString; -} -else{ - private final static String LineDelimiter = tango.io.FileConst.FileConst.NewlineString; -} StyledTextListener[] textListeners; // stores text listeners for event sending char[] textStore; // stores the actual text diff -r 5983f0f11896 -r 9d67c3170a58 dwt/custom/StyledText.d --- a/dwt/custom/StyledText.d Mon Jul 21 22:38:49 2008 +0200 +++ b/dwt/custom/StyledText.d Sat Jul 26 02:52:25 2008 +0200 @@ -85,12 +85,7 @@ static import tango.text.Text; static import tango.text.Util; -version(TANGOSVN) { - static import tango.io.model.IFile; -} -else{ - static import tango.io.FileConst; -} +static import tango.io.model.IFile; static import tango.text.convert.Utf; import tango.util.Convert; import dwt.dwthelper.utils; @@ -157,12 +152,7 @@ alias Canvas.computeSize computeSize; static const char TAB = '\t'; -version(TANGOSVN){ static const String PlatformLineDelimiter = tango.io.model.IFile.FileConst.NewlineString; -} -else { - static const String PlatformLineDelimiter = tango.io.FileConst.FileConst.NewlineString; -} static const int BIDI_CARET_WIDTH = 3; static const int DEFAULT_WIDTH = 64; static const int DEFAULT_HEIGHT = 64; diff -r 5983f0f11896 -r 9d67c3170a58 dwt/dwthelper/ByteArrayOutputStream.d --- a/dwt/dwthelper/ByteArrayOutputStream.d Mon Jul 21 22:38:49 2008 +0200 +++ b/dwt/dwthelper/ByteArrayOutputStream.d Sat Jul 26 02:52:25 2008 +0200 @@ -6,12 +6,6 @@ public import dwt.dwthelper.OutputStream; import dwt.dwthelper.utils; import tango.io.Buffer; -version(TANGOSVN) { - import tango.io.Buffer; -} -else{ - import tango.io.GrowBuffer; -} public class ByteArrayOutputStream : dwt.dwthelper.OutputStream.OutputStream { diff -r 5983f0f11896 -r 9d67c3170a58 dwt/dwthelper/File.d --- a/dwt/dwthelper/File.d Mon Jul 21 22:38:49 2008 +0200 +++ b/dwt/dwthelper/File.d Sat Jul 26 02:52:25 2008 +0200 @@ -5,12 +5,7 @@ import dwt.dwthelper.utils; -version(TANGOSVN) { - static import tango.io.model.IFile; -} -else{ - static import tango.io.FileConst; -} +static import tango.io.model.IFile; static import tango.io.FilePath; static import tango.io.FileSystem; @@ -24,18 +19,10 @@ private tango.io.FilePath.FilePath mFilePath; static this(){ -version(TANGOSVN) { separator = tango.io.model.IFile.FileConst.PathSeparatorString; separatorChar = tango.io.model.IFile.FileConst.PathSeparatorChar; pathSeparator = tango.io.model.IFile.FileConst.SystemPathString; pathSeparatorChar = tango.io.model.IFile.FileConst.SystemPathChar; -} -else{ - separator = tango.io.FileConst.FileConst.PathSeparatorString; - separatorChar = tango.io.FileConst.FileConst.PathSeparatorChar; - pathSeparator = tango.io.FileConst.FileConst.SystemPathString; - pathSeparatorChar = tango.io.FileConst.FileConst.SystemPathChar; -} } public this ( String pathname ){ diff -r 5983f0f11896 -r 9d67c3170a58 dwt/dwthelper/InflaterInputStream.d --- a/dwt/dwthelper/InflaterInputStream.d Mon Jul 21 22:38:49 2008 +0200 +++ b/dwt/dwthelper/InflaterInputStream.d Sat Jul 26 02:52:25 2008 +0200 @@ -7,9 +7,8 @@ import dwt.dwthelper.utils; import tango.io.Stdout; import tango.io.compress.ZlibStream; -version(TANGOSVN) { - import tango.io.Conduit; -} +import tango.io.Conduit; + class InputStreamWrapper : tango.io.model.IConduit.InputStream { dwt.dwthelper.InputStream.InputStream istr; @@ -22,12 +21,10 @@ int res = istr.read( cast(byte[])dst ); return res; } -version(TANGOSVN) { + void[] load (void[] dst = null) { return Conduit.load (this, dst); } -} - tango.io.model.IConduit.InputStream clear (){ return this; diff -r 5983f0f11896 -r 9d67c3170a58 dwt/dwthelper/utils.d --- a/dwt/dwthelper/utils.d Mon Jul 21 22:38:49 2008 +0200 +++ b/dwt/dwthelper/utils.d Sat Jul 26 02:52:25 2008 +0200 @@ -149,30 +149,15 @@ } public static String toHexString( int i ){ -version(TANGOSVN) { return tango.text.convert.Integer.toString(i, "x" ); -} -else{ - return tango.text.convert.Integer.toString(i, tango.text.convert.Integer.Style.Hex ); -} } public static String toOctalString( int i ){ -version(TANGOSVN) { return tango.text.convert.Integer.toString(i, "o" ); -} -else{ - return tango.text.convert.Integer.toString(i, tango.text.convert.Integer.Style.Octal ); -} } public static String toBinaryString( int i ){ -version(TANGOSVN) { return tango.text.convert.Integer.toString(i, "b" ); -} -else{ - return tango.text.convert.Integer.toString(i, tango.text.convert.Integer.Style.Binary ); -} } public static String toString( int i ){ @@ -650,7 +635,6 @@ public alias tango.stdc.stringz.fromString16z fromString16z; static String toHex(uint value, bool prefix = true, int radix = 8){ -version(TANGOSVN) { return tango.text.convert.Integer.toString( value, radix is 10 ? "d" : @@ -658,17 +642,6 @@ radix is 16 ? "x" : "d" ); } -else{ - return tango.text.convert.Integer.toString( - value, - radix is 10 ? tango.text.convert.Integer.Style.Signed : - radix is 8 ? tango.text.convert.Integer.Style.Octal : - radix is 16 ? tango.text.convert.Integer.Style.Hex : - tango.text.convert.Integer.Style.Signed, - prefix ? tango.text.convert.Integer.Flags.Prefix : tango.text.convert.Integer.Flags.None - ); -} -} class RuntimeException : Exception { this( String e = null){ diff -r 5983f0f11896 -r 9d67c3170a58 dwt/widgets/DirectoryDialog.d --- a/dwt/widgets/DirectoryDialog.d Mon Jul 21 22:38:49 2008 +0200 +++ b/dwt/widgets/DirectoryDialog.d Sat Jul 26 02:52:25 2008 +0200 @@ -23,12 +23,7 @@ import dwt.widgets.Shell; import dwt.widgets.Display; -version(TANGOSVN) { - static import tango.io.model.IFile; -} -else{ - static import tango.io.FileConst; -} +static import tango.io.model.IFile; static import tango.text.Util; /** @@ -51,12 +46,7 @@ */ public class DirectoryDialog : Dialog { String message = "", filterPath = ""; -version(TANGOSVN) { static const String SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorString; -} -else{ - static const String SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorString; -} /** * Constructs a new instance of this class given only its parent. diff -r 5983f0f11896 -r 9d67c3170a58 dwt/widgets/FileDialog.d --- a/dwt/widgets/FileDialog.d Mon Jul 21 22:38:49 2008 +0200 +++ b/dwt/widgets/FileDialog.d Sat Jul 26 02:52:25 2008 +0200 @@ -22,12 +22,7 @@ import dwt.widgets.Display; import dwt.dwthelper.utils; -version(TANGOSVN) { - static import tango.io.model.IFile; -} -else{ - static import tango.io.FileConst; -} +static import tango.io.model.IFile; static import tango.text.Util; static import tango.text.Text; @@ -61,12 +56,7 @@ int filterIndex = -1; bool overwrite = false; GtkWidget* handle; -version(TANGOSVN) { static final char SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorChar; -} -else{ - static final char SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorChar; -} static final char EXTENSION_SEPARATOR = ';'; /**