Remove obsolete checks from API actions

refs #10561
This commit is contained in:
Michael Friedrich 2015-11-10 16:12:50 +01:00
parent 5a6f38b044
commit f5da37b7df
1 changed files with 0 additions and 10 deletions

View File

@ -287,11 +287,6 @@ Dictionary::Ptr ApiActions::RemoveComment(const ConfigObject::Ptr& object,
Comment::RemoveComment(commentName);
comment = Comment::GetByName(commentName);
if (comment)
return ApiActions::CreateResult(403, "Could not remove comment '" + commentName + "'.");
return ApiActions::CreateResult(200, "Successfully removed comment '" + commentName + "'.");
}
@ -356,11 +351,6 @@ Dictionary::Ptr ApiActions::RemoveDowntime(const ConfigObject::Ptr& object,
Downtime::RemoveDowntime(downtimeName, true);
downtime = Downtime::GetByName(downtimeName);
if (downtime)
return ApiActions::CreateResult(403, "Could not remove downtime '" + downtimeName + "'.");
return ApiActions::CreateResult(200, "Successfully removed downtime '" + downtimeName + "'.");
}