mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 07:48:40 +00:00
remove unused code
This commit is contained in:
parent
57309ae775
commit
be2d01a1e7
5 changed files with 4 additions and 6 deletions
|
|
@ -1,6 +1,4 @@
|
|||
import 'package:flutter/foundation.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:twonly/src/providers/api/api.dart';
|
||||
import 'package:twonly/src/providers/api_provider.dart';
|
||||
|
|
|
|||
|
|
@ -36,6 +36,10 @@ class DbMessage {
|
|||
|
||||
bool containsOtherMedia() {
|
||||
if (messageOtherId == null) return false;
|
||||
return isMedia();
|
||||
}
|
||||
|
||||
bool isMedia() {
|
||||
return messageKind == MessageKind.image || messageKind == MessageKind.video;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -261,7 +261,6 @@ class ApiProvider {
|
|||
}
|
||||
|
||||
Future<Result> triggerDownload(List<int> token, int offset) async {
|
||||
log.info("Offset: ${offset}");
|
||||
var get = ApplicationData_DownloadData()
|
||||
..uploadToken = token
|
||||
..offset = offset;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import 'dart:collection';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
|
@ -8,7 +7,6 @@ import 'package:twonly/src/model/contacts_model.dart';
|
|||
import 'package:twonly/src/model/json/message.dart';
|
||||
import 'package:twonly/src/model/messages_model.dart';
|
||||
import 'package:twonly/src/providers/api/api.dart';
|
||||
import 'package:twonly/src/providers/download_change_provider.dart';
|
||||
import 'package:twonly/src/providers/messages_change_provider.dart';
|
||||
import 'package:twonly/src/views/media_viewer_view.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import 'package:twonly/src/model/contacts_model.dart';
|
|||
import 'package:twonly/src/model/messages_model.dart';
|
||||
import 'package:twonly/src/providers/api/api.dart';
|
||||
import 'package:twonly/src/providers/contacts_change_provider.dart';
|
||||
import 'package:twonly/src/providers/download_change_provider.dart';
|
||||
import 'package:twonly/src/providers/messages_change_provider.dart';
|
||||
import 'package:twonly/src/utils/misc.dart';
|
||||
import 'package:twonly/src/views/chat_item_details_view.dart';
|
||||
|
|
|
|||
Loading…
Reference in a new issue