MCPcopy Index your code
hub / github.com/clojure/clojure / unmap

Method unmap

src/jvm/clojure/lang/Namespace.java:177–189  ·  view source on GitHub ↗
(Symbol sym)

Source from the content-addressed store, hash-verified

175}
176
177public void unmap(Symbol sym) {
178 if(sym.ns != null)
179 {
180 throw new IllegalArgumentException("Can't unintern namespace-qualified symbol");
181 }
182 IPersistentMap map = getMappings();
183 while(map.containsKey(sym))
184 {
185 IPersistentMap newMap = map.without(sym);
186 mappings.compareAndSet(map, newMap);
187 map = getMappings();
188 }
189}
190
191public Class importClass(Symbol sym, Class c){
192 return referenceClass(sym, c);

Callers

nothing calls this directly

Calls 4

getMappingsMethod · 0.95
withoutMethod · 0.95
containsKeyMethod · 0.65
compareAndSetMethod · 0.65

Tested by

no test coverage detected