Skip to content

Commit

Permalink
remove data service
Browse files Browse the repository at this point in the history
  • Loading branch information
codenameakshay committed Nov 14, 2021
1 parent 8d2cbc2 commit b02436e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 41 deletions.
2 changes: 0 additions & 2 deletions lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:desktop_drop/desktop_drop.dart';
import 'package:flutter/material.dart';
import 'package:odin/painters/odin_logo_painter.dart';
import 'package:odin/painters/ripple_painter.dart';
import 'package:odin/services/data_service.dart';
import 'package:odin/services/file_picker_service.dart';
import 'package:odin/services/github_service.dart';
import 'package:odin/services/locator.dart';
Expand All @@ -31,7 +30,6 @@ class _HomePageState extends State<HomePage>
bool _dragging = false;
bool _loading = false;
String? _fileLink;
// final _ds = locator<DataService>();
final _gs = locator<GithubService>();
final _zs = locator<ZipService>();
final _fps = locator<FilepickerService>();
Expand Down
35 changes: 0 additions & 35 deletions lib/services/data_service.dart

This file was deleted.

2 changes: 0 additions & 2 deletions lib/services/file_picker_service.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import 'dart:io';

import 'package:file_picker/file_picker.dart';
import 'package:odin/services/data_service.dart';
import 'package:odin/services/github_service.dart';
import 'package:odin/services/locator.dart';
import 'package:odin/services/zip_service.dart';

class FilepickerService {
// final _dataService = locator<DataService>();
final _githubService = locator<GithubService>();
final _zipService = locator<ZipService>();

Expand Down
2 changes: 0 additions & 2 deletions lib/services/locator.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:get_it/get_it.dart';
import 'package:odin/services/data_service.dart';
import 'package:odin/services/file_picker_service.dart';
import 'package:odin/services/github_service.dart';
import 'package:odin/services/random_service.dart';
Expand All @@ -13,7 +12,6 @@ GetIt locator = GetIt.instance;
Future<void> setupLocator() async {
Stopwatch stopwatch = Stopwatch()..start();
// locator.registerFactory<CurrentDataNotifier>(() => CurrentDataNotifier());
// locator.registerLazySingleton<DataService>(() => DataService());
locator.registerLazySingleton<GithubService>(() => GithubService());
locator.registerLazySingleton<ShortnerService>(() => ShortnerService());
locator.registerLazySingleton<RandomService>(() => RandomService());
Expand Down

0 comments on commit b02436e

Please sign in to comment.