removed logs

This commit is contained in:
hannathkadher
2024-10-08 13:54:24 +04:00
parent 76229788b3
commit 72dfedf2b6
2 changed files with 0 additions and 24 deletions

View File

@ -26,27 +26,6 @@ class _SidebarWidgetState extends State<SidebarWidget> {
@override
void initState() {
super.initState();
_logCommunitySpaces(); // Log the structure on initialization
}
// Function to log the communitySpaces data structure for debugging
void _logCommunitySpaces() {
debugPrint('Logging communitySpaces structure:');
widget.communitySpaces.forEach((communityName, spaces) {
debugPrint('Community: $communityName');
_logSpaces(spaces, 1);
});
}
// Helper function to log the spaces and their children
void _logSpaces(List<SpaceModel> spaces, int level) {
for (SpaceModel space in spaces) {
debugPrint(
'${' ' * level}Space: ${space.name}, UUID: ${space.uuid}, Has children: ${space.children.isNotEmpty}');
if (space.children.isNotEmpty) {
_logSpaces(space.children, level + 1);
}
}
}
void _showCreateCommunityDialog() {