From a84eadb351cd98c04c48a7d44614ab2cd7dcac12 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 15 Aug 2001 02:13:36 +0000 Subject: [PATCH] Use File.separator rather than fetching the system property ourself. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@253 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/miso/tools/xml/XMLSceneRepository.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/java/com/threerings/miso/tools/xml/XMLSceneRepository.java b/src/java/com/threerings/miso/tools/xml/XMLSceneRepository.java index 4879a6b88..1ea182c3a 100644 --- a/src/java/com/threerings/miso/tools/xml/XMLSceneRepository.java +++ b/src/java/com/threerings/miso/tools/xml/XMLSceneRepository.java @@ -1,8 +1,9 @@ // -// $Id: XMLSceneRepository.java,v 1.7 2001/08/15 01:08:49 mdb Exp $ +// $Id: XMLSceneRepository.java,v 1.8 2001/08/15 02:13:36 mdb Exp $ package com.threerings.miso.scene.xml; +import java.io.File; import java.io.IOException; import java.util.ArrayList; @@ -33,7 +34,6 @@ public class XMLFileSceneRepository _tilemgr = tilemgr; // get path-related information - _sep = System.getProperty("file.separator", "/"); _root = System.getProperty("root", ""); _sceneRoot = _config.getValue(CFG_SROOT, DEF_SROOT); @@ -47,7 +47,7 @@ public class XMLFileSceneRepository */ public String getScenePath () { - return _root + _sep + _sceneRoot + _sep; + return _root + File.separator + _sceneRoot + File.separator; } /** @@ -94,9 +94,6 @@ public class XMLFileSceneRepository /** The root scene directory path. */ protected String _sceneRoot; - /** The file separator string. */ - protected String _sep; - /** The parser object for reading scenes from files. */ protected XMLSceneParser _parser;