cleanup some commented out code
This commit is contained in:
parent
12e364a32d
commit
04f6894b47
3 changed files with 5 additions and 73 deletions
|
|
@ -12,6 +12,7 @@ import 'package:fluffychat/pangea/models/constructs_model.dart';
|
|||
import 'package:fluffychat/pangea/models/student_analytics_summary_model.dart';
|
||||
import 'package:fluffychat/pangea/models/summary_analytics_event.dart';
|
||||
import 'package:fluffychat/pangea/models/summary_analytics_model.dart';
|
||||
import 'package:fluffychat/pangea/utils/error_handler.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:matrix/matrix.dart';
|
||||
|
||||
|
|
@ -36,7 +37,10 @@ class MyAnalyticsController extends BaseController {
|
|||
) async {
|
||||
final String? langCode = analyticsRoom.madeForLang;
|
||||
if (langCode == null) {
|
||||
debugPrint("no lang code found for analytics room: ${analyticsRoom.id}");
|
||||
ErrorHandler.logError(
|
||||
e: "no lang code found for analytics room: ${analyticsRoom.id}",
|
||||
s: StackTrace.current,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -190,68 +190,3 @@ extension on ConstructUseType {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// class OneConstructUse {
|
||||
// String? lemma;
|
||||
// ConstructType? constructType;
|
||||
// String? form;
|
||||
// ConstructUseType useType;
|
||||
// String chatId;
|
||||
// String? msgId;
|
||||
// DateTime timeStamp;
|
||||
// String? id;
|
||||
|
||||
// OneConstructUse({
|
||||
// required this.useType,
|
||||
// required this.chatId,
|
||||
// required this.timeStamp,
|
||||
// required this.lemma,
|
||||
// required this.form,
|
||||
// required this.msgId,
|
||||
// required this.constructType,
|
||||
// this.id,
|
||||
// });
|
||||
|
||||
// factory OneConstructUse.fromJson(Map<String, dynamic> json) {
|
||||
// return OneConstructUse(
|
||||
// useType: ConstructUseType.values
|
||||
// .firstWhere((e) => e.string == json['useType']),
|
||||
// chatId: json['chatId'],
|
||||
// timeStamp: DateTime.parse(json['timeStamp']),
|
||||
// lemma: json['lemma'],
|
||||
// form: json['form'],
|
||||
// msgId: json['msgId'],
|
||||
// constructType: json['constructType'] != null
|
||||
// ? ConstructTypeUtil.fromString(json['constructType'])
|
||||
// : null,
|
||||
// id: json['id'],
|
||||
// );
|
||||
// }
|
||||
|
||||
// Map<String, dynamic> toJson([bool condensed = true]) {
|
||||
// final Map<String, String?> data = {
|
||||
// 'useType': useType.string,
|
||||
// 'chatId': chatId,
|
||||
// 'timeStamp': timeStamp.toIso8601String(),
|
||||
// 'form': form,
|
||||
// 'msgId': msgId,
|
||||
// };
|
||||
// if (!condensed && lemma != null) data['lemma'] = lemma!;
|
||||
// if (!condensed && constructType != null) {
|
||||
// data['constructType'] = constructType!.string;
|
||||
// }
|
||||
// if (id != null) data['id'] = id;
|
||||
|
||||
// return data;
|
||||
// }
|
||||
|
||||
// Room? getRoom(Client client) {
|
||||
// return client.getRoomById(chatId);
|
||||
// }
|
||||
|
||||
// Future<Event?> getEvent(Client client) async {
|
||||
// final Room? room = getRoom(client);
|
||||
// if (room == null || msgId == null) return null;
|
||||
// return room.getEventById(msgId!);
|
||||
// }
|
||||
// }
|
||||
|
|
|
|||
|
|
@ -96,13 +96,6 @@ class BaseAnalyticsView extends StatelessWidget {
|
|||
icon: const Icon(Icons.arrow_back),
|
||||
onPressed: controller.navigate,
|
||||
),
|
||||
// actions: [
|
||||
// TimeSpanMenuButton(
|
||||
// value: controller.currentTimeSpan,
|
||||
// onChange: (TimeSpan value) =>
|
||||
// controller.toggleTimeSpan(context, value),
|
||||
// ),
|
||||
// ],
|
||||
),
|
||||
body: MaxWidthBody(
|
||||
withScrolling: false,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue