# HG changeset patch # User Frank Benoit # Date 1217033261 -7200 # Node ID ae94c6a65f9e8a4ba631e7cf73e10f4d4fcc8da4 # Parent 884b44777f656fd812cf65ba33b8b529bb2dbcdb Removed version=TANGOSVN for release 0.99.7 diff -r 884b44777f65 -r ae94c6a65f9e examples/clipboard/ClipboardExample.d --- a/examples/clipboard/ClipboardExample.d Sat Jul 26 02:11:52 2008 +0200 +++ b/examples/clipboard/ClipboardExample.d Sat Jul 26 02:47:41 2008 +0200 @@ -45,12 +45,8 @@ import tango.io.Stdout; version(JIVE) import jive.stacktrace; -version(TANGOSVN){ - import tango.io.model.IFile; -} -else{ - import tango.io.FileConst; -} +import tango.io.model.IFile; + class ClipboardExample { static const int SIZE = 60; Clipboard clipboard; @@ -302,12 +298,7 @@ if (result !is null && result.length > 0){ //copyFileTable.removeAll(); //This cannot be used -version(TANGOSVN){ auto separator = tango.io.model.IFile.FileConst.PathSeparatorString; -} -else{ - auto separator = tango.io.FileConst.FileConst.PathSeparatorString; -} auto path = dialog.getFilterPath(); auto names = dialog.getFileNames(); for (int i = 0; i < names.length; i++) { diff -r 884b44777f65 -r ae94c6a65f9e jface/FileTreeViewer.d --- a/jface/FileTreeViewer.d Sat Jul 26 02:11:52 2008 +0200 +++ b/jface/FileTreeViewer.d Sat Jul 26 02:47:41 2008 +0200 @@ -35,12 +35,7 @@ //import dwt.dwthelper.utils; //------------------------------------ -version(TANGOSVN){ import tango.io.FileSystem; -} -else{ -import tango.io.FileRoots; -} import tango.io.FilePath; import tango.util.log.Trace; @@ -133,7 +128,6 @@ public override Object[] getElements( Object arg0 ){ Object[] res; -version(TANGOSVN){ foreach( root; FileSystem.roots()){ // ignore floppy drives, they bring up strange error messages if( root == `A:\`|| root == `B:\` ){ @@ -141,16 +135,6 @@ } res ~= new FilePath( root ); } -} -else{ - foreach( root; FileRoots.list()){ - // ignore floppy drives, they bring up strange error messages - if( root == `A:\`|| root == `B:\` ){ - continue; - } - res ~= new FilePath( root ); - } -} return res; } diff -r 884b44777f65 -r ae94c6a65f9e snippets/tree/Snippet8.d --- a/snippets/tree/Snippet8.d Sat Jul 26 02:11:52 2008 +0200 +++ b/snippets/tree/Snippet8.d Sat Jul 26 02:47:41 2008 +0200 @@ -31,12 +31,7 @@ import dwt.dwthelper.utils; import tango.io.FilePath; -version(TANGOSVN){ import tango.io.FileSystem; -} -else{ -import tango.io.FileRoots; -} void main () { auto display = new Display (); @@ -44,12 +39,7 @@ shell.setText ("Lazy Tree"); shell.setLayout (new FillLayout ()); auto tree = new Tree (shell, DWT.BORDER); -version(TANGOSVN){ auto roots = FileSystem.roots(); -} -else{ - auto roots = FileRoots.list(); -} foreach (file; roots) { auto root = new TreeItem (tree, 0); root.setText (file);