Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Commit

Permalink
Removed global Component instance "InvalidObject", which was unused
Browse files Browse the repository at this point in the history
  • Loading branch information
cstawarz committed Mar 25, 2011
1 parent a07f2ba commit 23ca30d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions Core/PluginServices/ComponentFactory.cpp
Expand Up @@ -16,9 +16,6 @@
BEGIN_NAMESPACE_MW


const mw::Component *InvalidObject = new mw::Component();


void ComponentFactory::processParameters(StdStringMap &parameters, ComponentRegistryPtr reg, ParameterValueMap &values)
{
requireAttributes(parameters, info.getRequiredParameters());
Expand Down Expand Up @@ -76,8 +73,6 @@ void ComponentFactory::checkAttribute(shared_ptr<mw::Component> component,
{
if(component == 0) {
throw MissingReferenceException(refID, name, value);
} else if(component.get() == InvalidObject) {
throw InvalidReferenceException(refID, name, value);
}
}

Expand Down
2 changes: 0 additions & 2 deletions Core/PluginServices/ComponentFactory.h
Expand Up @@ -24,8 +24,6 @@
BEGIN_NAMESPACE_MW


extern const mw::Component *InvalidObject;

#define REQUIRE_ATTRIBUTES(parameters, attributes...) {\
const char *requiredAttributes[] = { attributes }; \
requireAttributes(parameters, \
Expand Down

0 comments on commit 23ca30d

Please sign in to comment.