Skip to content

Commit 92d9f64

Browse files
authored
Merge pull request #10693 from Icinga/AddDowntime-origin
`Downtime::AddDowntime()`: remove unused parameter `const MessageOrigin::Ptr& origin`
2 parents aa0e7b6 + 92b6034 commit 92d9f64

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/icinga/downtime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Downtime::Ptr Downtime::AddDowntime(const Checkable::Ptr& checkable, const Strin
253253
const String& comment, double startTime, double endTime, bool fixed,
254254
const Downtime::Ptr& parentDowntime, double duration,
255255
const String& scheduledDowntime, const String& scheduledBy, const String& parent,
256-
const String& id, const MessageOrigin::Ptr& origin)
256+
const String& id)
257257
{
258258
String fullName;
259259
String triggeredBy;

lib/icinga/downtime.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ class Downtime final : public ObjectImpl<Downtime>
5656
static Ptr AddDowntime(const intrusive_ptr<Checkable>& checkable, const String& author,
5757
const String& comment, double startTime, double endTime, bool fixed,
5858
const Ptr& parentDowntime, double duration, const String& scheduledDowntime = String(),
59-
const String& scheduledBy = String(), const String& parent = String(), const String& id = String(),
60-
const MessageOrigin::Ptr& origin = nullptr);
59+
const String& scheduledBy = String(), const String& parent = String(), const String& id = String());
6160

6261
static void RemoveDowntime(const String& id, bool includeChildren, DowntimeRemovalReason removalReason,
6362
const String& removedBy = "");

0 commit comments

Comments
 (0)