Skip to content

Commit

Permalink
remove unused func
Browse files Browse the repository at this point in the history
  • Loading branch information
dickermoshe committed Feb 14, 2025
1 parent f0959e5 commit 4e936fe
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions sugar/lib/src/time/zone/providers/embedded/tzdb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,22 +172,6 @@ EmbeddedTimezone? parseTimezone({required String name}) {
@internal
final knownTimezones = _tzdb.keys.toSet();

/// If [name] is an alias for another timzone
/// then the name of the original timezone is returned.
///
/// If no alias is found, null is returned.
String? getOriginalForAlias(String name) {
final data = _tzdb[name];
if (data == null) {
return null;
}
// If the data does not start with a sign, then it is an alias.
if (!RegExp('^[+-]').hasMatch(data)) {
return data;
}
return null;
}

/// The timezone database stores durations in the format (-|+)HHMM or (-|+)HHMMSS
/// where HH is hours, MM is minutes, and SS is seconds.
///
Expand Down

0 comments on commit 4e936fe

Please sign in to comment.