Browse Source

Remove dead code

Vishnu Mohandas 5 years ago
parent
commit
ecb15fb07f
1 changed files with 0 additions and 23 deletions
  1. 0 23
      lib/ui/face_search_results_page.dart

+ 0 - 23
lib/ui/face_search_results_page.dart

@@ -6,8 +6,6 @@ import 'package:photos/models/photo.dart';
 import 'package:photos/ui/circular_network_image_widget.dart';
 import 'package:photos/ui/gallery.dart';
 import 'package:photos/ui/loading_widget.dart';
-import 'package:photos/ui/thumbnail_widget.dart';
-import 'package:photos/ui/detail_page.dart';
 
 class FaceSearchResultsPage extends StatelessWidget {
   final FaceSearchManager _faceSearchManager = FaceSearchManager.instance;
@@ -51,25 +49,4 @@ class FaceSearchResultsPage extends StatelessWidget {
       },
     );
   }
-
-  Widget _buildItem(BuildContext context, List<Photo> photos, int index) {
-    return GestureDetector(
-      onTap: () async {
-        _routeToDetailPage(photos, index, context);
-      },
-      child: ThumbnailWidget(photos[index]),
-    );
-  }
-
-  void _routeToDetailPage(
-      List<Photo> photos, int index, BuildContext context) async {
-    var page = DetailPage(photos, index);
-    Navigator.of(context).push(
-      MaterialPageRoute(
-        builder: (BuildContext context) {
-          return page;
-        },
-      ),
-    );
-  }
 }