Skip to content

Commit

Permalink
libdeng2: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Dec 3, 2012
1 parent 23f6b48 commit 907da93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion doomsday/libdeng2/include/de/core/unixinfo.h
Expand Up @@ -40,7 +40,7 @@ namespace de {
* instantiated normally but no input files are parsed. There are equivalent
* mechanisms on these platforms (on Windows, the closest is the registry; on
* Mac OS X, ~/Library/Preferences/) but these are not directly used by
* libdeng2. Instead of these, one should use QSettings for
* libdeng2. Instead of these, one should use Config (or QSettings) for
* platform-independent persistent configuration.
*/
class UnixInfo
Expand Down
15 changes: 0 additions & 15 deletions doomsday/libdeng2/src/scriptsys/nameexpression.cpp
Expand Up @@ -88,21 +88,6 @@ Value *NameExpression::evaluate(Evaluator &evaluator) const
throw AlreadyExistsError("NameExpression::evaluate",
"Identifier '" + _identifier + "' already exists");
}

// Should we delete the identifier?
if(flags().testFlag(Delete))
{
if(!variable)
{
throw NotFoundError("NameExpression::evaluate",
"Cannot delete nonexistent identifier '" + _identifier + "'");
}
DENG2_ASSERT(foundInNamespace != 0);

delete foundInNamespace->remove(*variable);

return new NoneValue();
}

// Create a new subrecord in the namespace? ("record xyz")
if(flags().testFlag(NewSubrecord))
Expand Down

0 comments on commit 907da93

Please sign in to comment.