Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kidozh committed Dec 8, 2024
1 parent 23ef7e8 commit e2db6e7
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 18 deletions.
1 change: 0 additions & 1 deletion lib/JsonResult/BilibiliVideoResult.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@


import 'package:discuz_flutter/converter/SecondToDateTimeConverter.dart';
import 'package:json_annotation/json_annotation.dart';

part 'BilibiliVideoResult.g.dart';
Expand Down
2 changes: 0 additions & 2 deletions lib/client/SteamApiClient.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@


import 'package:dio/dio.dart';
import 'package:discuz_flutter/JsonResult/BilibiliVideoResult.dart';
import 'package:discuz_flutter/JsonResult/SteamGameDataResult.dart';
import 'package:retrofit/error_logger.dart';
import 'package:retrofit/http.dart';

Expand Down
1 change: 0 additions & 1 deletion lib/page/PostThreadPage.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:dio/dio.dart';
import 'package:discuz_flutter/client/MobileApiClient.dart';
import 'package:discuz_flutter/screen/LoadingScreen.dart';
import 'package:discuz_flutter/screen/SmileyListScreen.dart';
import 'package:discuz_flutter/utility/AppPlatformIcons.dart';
import 'package:discuz_flutter/utility/VibrationUtils.dart';
Expand Down
2 changes: 0 additions & 2 deletions lib/page/SettingPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import 'package:url_launcher/url_launcher.dart';
import '../utility/AppPlatformIcons.dart';
import '../utility/PostTextFieldUtils.dart';
import 'ChooseThemeColorPage.dart';
import 'ConfigurePictureBedPage.dart';
import 'SetPushNotificationPage.dart';

class SettingPage extends StatefulWidget {
@override
Expand Down
1 change: 0 additions & 1 deletion lib/page/TestFlightBannerPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:provider/provider.dart';

import '../provider/ThemeNotifierProvider.dart';
import '../provider/UserPreferenceNotifierProvider.dart';
import '../utility/PostTextFieldUtils.dart';

Expand Down
1 change: 0 additions & 1 deletion lib/screen/DashboardScreen.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@


import 'dart:developer';

import 'package:discuz_flutter/provider/DiscuzAndUserNotifier.dart';
import 'package:discuz_flutter/screen/NewThreadScreen.dart';
Expand Down
2 changes: 0 additions & 2 deletions lib/utility/NetworkUtils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import 'dart:io';
import 'package:cookie_jar/cookie_jar.dart';
import 'package:dio/dio.dart';
import 'package:discuz_flutter/entity/User.dart';
import 'package:language_code/language_code.dart';
import 'package:path_provider/path_provider.dart';
import 'package:dio_cookie_manager/dio_cookie_manager.dart';
import 'package:random_user_agents/random_user_agents.dart';
import 'package:ua_client_hints/ua_client_hints.dart';

class NetworkUtils{

Expand Down
3 changes: 0 additions & 3 deletions lib/widget/BilibiliWidget.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import 'dart:developer';

import 'package:cached_network_image/cached_network_image.dart';
import 'package:dio/dio.dart';
import 'package:discuz_flutter/JsonResult/BilibiliVideoResult.dart';
import 'package:discuz_flutter/client/BilibiliApiClient.dart';
import 'package:discuz_flutter/utility/NetworkUtils.dart';
import 'package:discuz_flutter/utility/URLUtils.dart';
import 'package:discuz_flutter/utility/VibrationUtils.dart';
import 'package:discuz_flutter/widget/UserAvatar.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/widget/DiscuzHtmlWidget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ class DiscuzHtmlWidget extends StatelessWidget {
"margin-bottom": "0.1em"
};
}
return null;
},
customWidgetBuilder: (element) {
// "collapse", "spoil"
Expand Down
5 changes: 0 additions & 5 deletions lib/widget/SteamGameWidget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@ import 'package:cached_network_image/cached_network_image.dart';
import 'package:carousel_slider/carousel_slider.dart';
import 'package:discuz_flutter/JsonResult/SteamGameDataResult.dart';
import 'package:discuz_flutter/client/SteamApiClient.dart';
import 'package:discuz_flutter/entity/Discuz.dart';
import 'package:discuz_flutter/provider/DiscuzAndUserNotifier.dart';
import 'package:discuz_flutter/utility/TwoPaneUtils.dart';
import 'package:discuz_flutter/widget/DiscuzHtmlWidget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:html_unescape/html_unescape.dart';
import 'package:language_code/language_code.dart';
import 'package:provider/provider.dart';

import '../generated/l10n.dart';
import '../utility/AppPlatformIcons.dart';
Expand Down

0 comments on commit e2db6e7

Please sign in to comment.