summaryrefslogtreecommitdiff
path: root/src/cli/runtime/Module.cs
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2007-09-22 22:32:46 +0000
committerRich Hickey <richhickey@gmail.com>2007-09-22 22:32:46 +0000
commitb6db84aea2db2ddebcef58918971258464cbf46f (patch)
treea02f6e2d758da84f1358c2e647464ff563a7f00c /src/cli/runtime/Module.cs
parent07060b8e569c6fd9073da42bcb80f3ab26251195 (diff)
refactoring dumping unused classes
Diffstat (limited to 'src/cli/runtime/Module.cs')
-rw-r--r--src/cli/runtime/Module.cs70
1 files changed, 0 insertions, 70 deletions
diff --git a/src/cli/runtime/Module.cs b/src/cli/runtime/Module.cs
deleted file mode 100644
index 3e396783..00000000
--- a/src/cli/runtime/Module.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
- * Copyright (c) Rich Hickey. All rights reserved.
- * The use and distribution terms for this software are covered by the
- * Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
- * which can be found in the file CPL.TXT at the root of this distribution.
- * By using this software in any fashion, you are agreeing to be bound by
- * the terms of this license.
- * You must not remove this notice, or any other, from this software.
- **/
-
-/* rich Mar 27, 2006 1:29:39 PM */
-
-using System;
-using System.Collections.Specialized;
-
-namespace clojure.lang
-{
-
-public class Module
-{
-
-/**
- * String->Module
- */
-static public HybridDictionary table = new HybridDictionary();
-
-/**
- * Symbol->Var
- */
-public HybridDictionary vars = new HybridDictionary();
-public String name;
-
-
-Module(String name)
- {
- this.name = name;
- table.Add(name, this);
- }
-
-static public Module find(String name)
- {
- return (Module) table[name];
- }
-
-static public Module findOrCreate(String name)
- {
- lock(table)
- {
- Module ns = find(name);
- if(ns == null)
- table.Add(name,ns = new Module(name));
- return ns;
- }
- }
-
-public Var find(Symbol sym){
- lock(vars)
- {
- return (Var) vars[sym];
- }
-}
-
-static public Var intern(String ns, String name)
- {
- return findOrCreate(ns).intern(Symbol.intern(name));
- }
-
-public Var intern(Symbol sym) { lock(vars) { Var var = (Var) vars[sym]; if(var == null) vars.Add(sym,var = new Var(sym, this)); return var; } }
-}
-}