changeset 129:ae94c6a65f9e

Removed version=TANGOSVN for release 0.99.7
author Frank Benoit <benoit@tionex.de>
date Sat, 26 Jul 2008 02:47:41 +0200
parents 884b44777f65
children 5c1906bfc206
files examples/clipboard/ClipboardExample.d jface/FileTreeViewer.d snippets/tree/Snippet8.d
diffstat 3 files changed, 2 insertions(+), 37 deletions(-) [+]
line wrap: on
line diff
--- 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++) {
--- 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;
     }
 
--- 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);