瀏覽代碼

Remove dead code

Vishnu Mohandas 5 年之前
父節點
當前提交
ecb15fb07f
共有 1 個文件被更改,包括 0 次插入23 次删除
  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;
-        },
-      ),
-    );
-  }
 }