From bb877a7e01ed73642270f5e89ea9bee6a45a8792 Mon Sep 17 00:00:00 2001 From: emuroni Date: Mon, 14 Aug 2023 16:36:26 +0200 Subject: [PATCH] removed deprecated logger level trace v and wtf --- lib/common/domain/domain_logger.dart | 10 ---------- lib/sdk/default_logger.dart | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/lib/common/domain/domain_logger.dart b/lib/common/domain/domain_logger.dart index 3fc8e4b3..29eeb32d 100644 --- a/lib/common/domain/domain_logger.dart +++ b/lib/common/domain/domain_logger.dart @@ -1,6 +1,4 @@ abstract class PolygonIdSdkLogger { - void v(dynamic message, [dynamic error, StackTrace? stackTrace]); - void d(dynamic message, [dynamic error, StackTrace? stackTrace]); void i(dynamic message, [dynamic error, StackTrace? stackTrace]); @@ -8,8 +6,6 @@ abstract class PolygonIdSdkLogger { void w(dynamic message, [dynamic error, StackTrace? stackTrace]); void e(dynamic message, [dynamic error, StackTrace? stackTrace]); - - void wtf(dynamic message, [dynamic error, StackTrace? stackTrace]); } // Avoid crashing if logger is not defined @@ -23,14 +19,8 @@ class NoLogger extends PolygonIdSdkLogger { @override void i(message, [error, StackTrace? stackTrace]) {} - @override - void v(message, [error, StackTrace? stackTrace]) {} - @override void w(message, [error, StackTrace? stackTrace]) {} - - @override - void wtf(message, [error, StackTrace? stackTrace]) {} } class Domain { diff --git a/lib/sdk/default_logger.dart b/lib/sdk/default_logger.dart index 6755eb87..6695568b 100644 --- a/lib/sdk/default_logger.dart +++ b/lib/sdk/default_logger.dart @@ -21,18 +21,8 @@ class DefaultLogger implements PolygonIdSdkLogger { _logger.i(message, error: error, stackTrace: stackTrace); } - @override - void v(message, [error, StackTrace? stackTrace]) { - _logger.v(message, error: error, stackTrace: stackTrace); - } - @override void w(message, [error, StackTrace? stackTrace]) { _logger.w(message, error: error, stackTrace: stackTrace); } - - @override - void wtf(message, [error, StackTrace? stackTrace]) { - _logger.wtf(message, error: error, stackTrace: stackTrace); - } }