Minor tidyups

This commit is contained in:
Joe Walker 2010-11-23 12:28:29 +00:00
commit fca0eeb1ff
2 changed files with 12 additions and 16 deletions

View file

@ -1,7 +1,3 @@
// TODO this file can likely be deleted. The useful functionality has moved to
// index.js
/* ***** BEGIN LICENSE BLOCK ***** /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
* *
@ -77,7 +73,7 @@ Type.prototype = {
* extra data, however this function returns only the name, not the extra * extra data, however this function returns only the name, not the extra
* data. * data.
*/ */
name: "unknown", name: "unknown"
// Methods from the original type system that we might need, but not now. // Methods from the original type system that we might need, but not now.
@ -111,14 +107,14 @@ var types = {};
*/ */
exports.registerType = function(type) { exports.registerType = function(type) {
types[type.name] = type; types[type.name] = type;
} };
/** /**
* Remove a type from the list available to the system * Remove a type from the list available to the system
*/ */
exports.deregisterType = function(type) { exports.deregisterType = function(type) {
delete types[type.name]; delete types[type.name];
} };
/** /**
* Find a type, previously registered using #registerType() * Find a type, previously registered using #registerType()
@ -144,6 +140,6 @@ exports.getType = function(typeSpec) {
if (typeof type === 'function') { if (typeof type === 'function') {
return type(typeSpec); return type(typeSpec);
} }
} };
}); });