Changeset 10191


Ignore:
Timestamp:
10/23/05 12:57:15 (16 years ago)
Author:
piso
Message:

addInitialExports() is obsolete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/Package.java

    r10127 r10191  
    33 *
    44 * Copyright (C) 2002-2005 Peter Graves
    5  * $Id: Package.java,v 1.71 2005-10-16 13:06:58 piso Exp $
     5 * $Id: Package.java,v 1.72 2005-10-23 12:57:15 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    288288    public synchronized Symbol addInternalSymbol(String symbolName)
    289289    {
    290         Symbol symbol = new Symbol(symbolName, this);
     290        final Symbol symbol = new Symbol(symbolName, this);
    291291        internalSymbols.put(symbol);
    292292        return symbol;
     
    295295    public synchronized Symbol addExternalSymbol(String symbolName)
    296296    {
    297         Symbol symbol = new Symbol(symbolName, this);
     297        final Symbol symbol = new Symbol(symbolName, this);
    298298        externalSymbols.put(symbol);
    299299        return symbol;
    300     }
    301 
    302     public synchronized void addInitialExports(String[] names)
    303     {
    304         for (int i = names.length; i-- > 0;) {
    305             final SimpleString s = new SimpleString(names[i]);
    306             final int hash = s.sxhash();
    307             // There shouldn't be any internal symbols in the COMMON-LISP
    308             // package.
    309             Debug.assertTrue(internalSymbols.get(s, hash) == null);
    310             // The symbol in question may have been exported already. If we
    311             // replace an existing symbol, we'll lose any information that
    312             // might be associated with it. So we check first...
    313             if (externalSymbols.get(s, hash) == null)
    314                 externalSymbols.put(new Symbol(s, hash, this));
    315         }
    316300    }
    317301
Note: See TracChangeset for help on using the changeset viewer.