fix(shopinbit): remove unused imports and dead _copyAddress method
What changed, and why it matters
This commit is a routine code cleanup: it removes an unused import and a private, never-called method that copied a cryptocurrency address to the clipboard. There is no functional or security change to the app.
No action required; this is a benign cleanup commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff deletes one unused import (shopinbit_tickets_view.dart) and one dead private method (_copyAddress) from shopinbit_payment_view.dart, plus one unused import (show_flush_bar.dart) from shopinbit_shipping_view.dart. The _copyAddress method referenced _currentAddress and the clipboard, but because the method itself is removed and no call sites exist, behavior is unchanged. No security boundary is altered.
Changed components
lib/pages/shopinbit/shopinbit_payment_view.dartlib/pages/shopinbit/shopinbit_shipping_view.dartInspect captured patch +0 / −12
diff --git a/lib/pages/shopinbit/shopinbit_payment_view.dart b/lib/pages/shopinbit/shopinbit_payment_view.dart
index 2ef6505..0467d3f 100644
--- a/lib/pages/shopinbit/shopinbit_payment_view.dart
+++ b/lib/pages/shopinbit/shopinbit_payment_view.dart
@@ -31,7 +31,6 @@ import '../../widgets/desktop/primary_button.dart';
import '../../widgets/desktop/secondary_button.dart';
import '../../widgets/rounded_white_container.dart';
import 'shopinbit_send_from_view.dart';
-import 'shopinbit_tickets_view.dart';
class ShopInBitPaymentView extends ConsumerStatefulWidget {
const ShopInBitPaymentView({super.key, required this.model});
@@ -468,16 +467,6 @@ class _ShopInBitPaymentViewState extends ConsumerState<ShopInBitPaymentView> {
);
}
- void _copyAddress(BuildContext context) {
- Clipboard.setData(ClipboardData(text: _currentAddress));
- showFloatingFlushBar(
- type: FlushBarType.info,
- message: "Copied to clipboard",
- iconAsset: Assets.svg.copy,
- context: context,
- );
- }
-
@override
Widget build(BuildContext context) {
final isDesktop = Util.isDesktop;
diff --git a/lib/pages/shopinbit/shopinbit_shipping_view.dart b/lib/pages/shopinbit/shopinbit_shipping_view.dart
index be7ca26..013b276 100644
--- a/lib/pages/shopinbit/shopinbit_shipping_view.dart
+++ b/lib/pages/shopinbit/shopinbit_shipping_view.dart
@@ -5,7 +5,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import '../../models/shopinbit/shopinbit_order_model.dart';
-import '../../notifications/show_flush_bar.dart';
import '../../services/shopinbit/shopinbit_service.dart';
import '../../services/shopinbit/src/models/address.dart';
import '../../themes/stack_colors.dart';
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.