Skip to content

Commit bbae048

Browse files
committed
chore(neon_talk): Remove unused helper extensions
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent 55c4c20 commit bbae048

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

packages/neon/neon_talk/lib/src/utils/helpers.dart

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ extension ChatMessageHidden on spreed.$ChatMessageInterface {
2323
bool get isHidden => _hiddenMessages.contains(systemMessage);
2424
}
2525

26-
/// Helper extension for [spreed.$BaseMessageInterface]
27-
extension $BaseMessageInterfaceHelpers on spreed.$BaseMessageInterface {
28-
/// Parsed equivalent of [expirationTimestamp].
29-
tz.TZDateTime get parsedExpirationTimestamp => DateTimeUtils.fromSecondsSinceEpoch(tz.local, expirationTimestamp);
30-
}
31-
3226
/// Helper extension for [spreed.$ChatMessageInterface]
3327
extension $ChatMessageInterfaceHelpers on spreed.$ChatMessageInterface {
3428
/// Parsed equivalent of [timestamp].
@@ -39,18 +33,6 @@ extension $ChatMessageInterfaceHelpers on spreed.$ChatMessageInterface {
3933
lastEditTimestamp != null ? DateTimeUtils.fromSecondsSinceEpoch(tz.local, lastEditTimestamp!) : null;
4034
}
4135

42-
/// Helper extension for [spreed.$ChatReminderInterface]
43-
extension $ChatReminderInterfaceHelpers on spreed.$ChatReminderInterface {
44-
/// Parsed equivalent of [timestamp].
45-
tz.TZDateTime get parsedTimestamp => DateTimeUtils.fromSecondsSinceEpoch(tz.local, timestamp);
46-
}
47-
48-
/// Helper extension for [spreed.$ReactionInterface]
49-
extension $ReactionInterfaceHelpers on spreed.$ReactionInterface {
50-
/// Parsed equivalent of [timestamp].
51-
tz.TZDateTime get parsedTimestamp => DateTimeUtils.fromSecondsSinceEpoch(tz.local, timestamp);
52-
}
53-
5436
/// Returns if the Talk [feature] is supported on the instance.
5537
bool hasFeature(BuildContext context, String feature) {
5638
final capabilitiesBloc = NeonProvider.of<CapabilitiesBloc>(context);

0 commit comments

Comments
 (0)