Skip to content

Commit 1e20913

Browse files
committed
Remove CheckResultReader, ExternalCommandListener and StatusDataWriter from code comments
refs #6307
1 parent 3b8a951 commit 1e20913

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

lib/icinga/compatutility.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
using namespace icinga;
1717

18-
/* Used in DB IDO, StatusDataWriter and Livestatus. */
18+
/* Used in DB IDO and Livestatus. */
1919
String CompatUtility::GetCommandLine(const Command::Ptr& command)
2020
{
2121
Value commandLine = command->GetCommandLine();
@@ -56,15 +56,15 @@ String CompatUtility::GetCommandNamePrefix(const Command::Ptr& command)
5656
}
5757

5858
String CompatUtility::GetCommandName(const Command::Ptr& command)
59-
/* Used in DB IDO, StatusDataWriter and Livestatus. */
59+
/* Used in DB IDO and Livestatus. */
6060
{
6161
if (!command)
6262
return Empty;
6363

6464
return GetCommandNamePrefix(command) + command->GetName();
6565
}
6666

67-
/* Used in DB IDO, StatusDataWriter and Livestatus. */
67+
/* Used in DB IDO and Livestatus. */
6868
String CompatUtility::GetCheckableCommandArgs(const Checkable::Ptr& checkable)
6969
{
7070
CheckCommand::Ptr command = checkable->GetCheckCommand();
@@ -130,7 +130,7 @@ String CompatUtility::GetCheckableCommandArgs(const Checkable::Ptr& checkable)
130130
return Empty;
131131
}
132132

133-
/* Used in DB IDO, StatusDataWriter and Livestatus. */
133+
/* Used in DB IDO and Livestatus. */
134134
int CompatUtility::GetCheckableNotificationLastNotification(const Checkable::Ptr& checkable)
135135
{
136136
double last_notification = 0.0;
@@ -142,7 +142,7 @@ int CompatUtility::GetCheckableNotificationLastNotification(const Checkable::Ptr
142142
return static_cast<int>(last_notification);
143143
}
144144

145-
/* Used in DB IDO, StatusDataWriter and Livestatus. */
145+
/* Used in DB IDO and Livestatus. */
146146
int CompatUtility::GetCheckableNotificationNextNotification(const Checkable::Ptr& checkable)
147147
{
148148
double next_notification = 0.0;
@@ -154,7 +154,7 @@ int CompatUtility::GetCheckableNotificationNextNotification(const Checkable::Ptr
154154
return static_cast<int>(next_notification);
155155
}
156156

157-
/* Used in DB IDO, StatusDataWriter and Livestatus. */
157+
/* Used in DB IDO and Livestatus. */
158158
int CompatUtility::GetCheckableNotificationNotificationNumber(const Checkable::Ptr& checkable)
159159
{
160160
int notification_number = 0;
@@ -166,7 +166,7 @@ int CompatUtility::GetCheckableNotificationNotificationNumber(const Checkable::P
166166
return notification_number;
167167
}
168168

169-
/* Used in DB IDO, StatusDataWriter and Livestatus. */
169+
/* Used in DB IDO and Livestatus. */
170170
double CompatUtility::GetCheckableNotificationNotificationInterval(const Checkable::Ptr& checkable)
171171
{
172172
double notification_interval = -1;
@@ -210,7 +210,7 @@ int CompatUtility::GetCheckableNotificationStateFilter(const Checkable::Ptr& che
210210
return notification_state_filter;
211211
}
212212

213-
/* Used in DB IDO, StatusDataWriter and Livestatus. */
213+
/* Used in DB IDO and Livestatus. */
214214
std::set<User::Ptr> CompatUtility::GetCheckableNotificationUsers(const Checkable::Ptr& checkable)
215215
{
216216
/* Service -> Notifications -> (Users + UserGroups -> Users) */
@@ -233,7 +233,7 @@ std::set<User::Ptr> CompatUtility::GetCheckableNotificationUsers(const Checkable
233233
return allUsers;
234234
}
235235

236-
/* Used in DB IDO, StatusDataWriter and Livestatus. */
236+
/* Used in DB IDO and Livestatus. */
237237
std::set<UserGroup::Ptr> CompatUtility::GetCheckableNotificationUserGroups(const Checkable::Ptr& checkable)
238238
{
239239
std::set<UserGroup::Ptr> usergroups;
@@ -249,7 +249,7 @@ std::set<UserGroup::Ptr> CompatUtility::GetCheckableNotificationUserGroups(const
249249
return usergroups;
250250
}
251251

252-
/* Used in DB IDO, StatusDataWriter, Livestatus, CompatLogger, GelfWriter, IcingaDB. */
252+
/* Used in DB IDO, Livestatus, GelfWriter, IcingaDB. */
253253
String CompatUtility::GetCheckResultOutput(const CheckResult::Ptr& cr)
254254
{
255255
if (!cr)
@@ -264,7 +264,7 @@ String CompatUtility::GetCheckResultOutput(const CheckResult::Ptr& cr)
264264
return raw_output.SubStr(0, line_end);
265265
}
266266

267-
/* Used in DB IDO, StatusDataWriter and Livestatus, IcingaDB. */
267+
/* Used in DB IDO and Livestatus, IcingaDB. */
268268
String CompatUtility::GetCheckResultLongOutput(const CheckResult::Ptr& cr)
269269
{
270270
if (!cr)
@@ -285,15 +285,15 @@ String CompatUtility::GetCheckResultLongOutput(const CheckResult::Ptr& cr)
285285
return Empty;
286286
}
287287

288-
/* Helper for DB IDO, StatusDataWriter and Livestatus. Used in StatusDataWriter. */
288+
/* Helper for DB IDO and Livestatus. */
289289
String CompatUtility::EscapeString(const String& str)
290290
{
291291
String result = str;
292292
boost::algorithm::replace_all(result, "\n", "\\n");
293293
return result;
294294
}
295295

296-
/* Used in ExternalCommandListener and CheckResultReader. */
296+
/* Used in ExternalCommandProcessor. */
297297
String CompatUtility::UnEscapeString(const String& str)
298298
{
299299
String result = str;

0 commit comments

Comments
 (0)