Skip to content

Commit

Permalink
Removed deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
JaffaKetchup committed May 28, 2024
1 parent 692fb6b commit 9c0ca70
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 462 deletions.
1 change: 0 additions & 1 deletion lib/flutter_map_tile_caching.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ part 'src/bulk_download/download_progress.dart';
part 'src/bulk_download/manager.dart';
part 'src/bulk_download/thread.dart';
part 'src/bulk_download/tile_event.dart';
part 'src/misc/deprecations.dart';
part 'src/providers/image_provider.dart';
part 'src/providers/tile_provider.dart';
part 'src/providers/tile_provider_settings.dart';
Expand Down
199 changes: 0 additions & 199 deletions lib/src/misc/deprecations.dart

This file was deleted.

13 changes: 0 additions & 13 deletions lib/src/providers/tile_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,6 @@ class FMTCTileProvider extends TileProvider {
requireValidImage: requireValidImage,
);

/// Check whether a specified tile is cached in the current store
@Deprecated('''
Migrate to `checkTileCached`.
Synchronous operations have been removed throughout FMTC v9, therefore the
distinction between sync and async operations has been removed. This deprecated
member will be removed in a future version.''')
Future<bool> checkTileCachedAsync({
required TileCoordinates coords,
required TileLayer options,
}) =>
checkTileCached(coords: coords, options: options);

/// Check whether a specified tile is cached in the current store
Future<bool> checkTileCached({
required TileCoordinates coords,
Expand Down
24 changes: 0 additions & 24 deletions lib/src/regions/base_region.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,30 +55,6 @@ sealed class BaseRegion {
Crs crs = const Epsg3857(),
});

/// Generate a graphical layer to be placed in a [FlutterMap]
///
/// **Deprecated.** Instead obtain the outline/line/points using other methods,
/// and render the layer manually. This method is being removed to reduce
/// dependency on flutter_map, and allow full usage of flutter_map
/// functionality without it needing to be semi-implemented here. This feature
/// was deprecated after v9.1.0, and will be removed in the next breaking/major
/// release.
@Deprecated(
'Instead obtain the outline/line/points using other methods, and render the '
'layer manually. '
'This method is being removed to reduce dependency on flutter_map, and allow '
'full usage of flutter_map functionality without it needing to be '
'semi-implemented here. '
'This feature was deprecated after v9.1.0, and will be removed in the next '
'breaking/major release.',
)
Widget toDrawable({
Color? fillColor,
Color borderColor = const Color(0x00000000),
double borderStrokeWidth = 3,
bool isDotted = false,
});

/// Generate the list of all the [LatLng]s forming the outline of this region
///
/// Returns a `Iterable<LatLng>` which can be used anywhere.
Expand Down
42 changes: 0 additions & 42 deletions lib/src/regions/circle.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,48 +41,6 @@ class CircleRegion extends BaseRegion {
crs: crs,
);

/// **Deprecated.** Instead obtain the outline/line/points using other methods,
/// and render the layer manually. This method is being removed to reduce
/// dependency on flutter_map, and allow full usage of flutter_map
/// functionality without it needing to be semi-implemented here. This feature
/// was deprecated after v9.1.0, and will be removed in the next breaking/major
/// release.
@Deprecated(
'Instead obtain the outline/line/points using other methods, and render the '
'layer manually. '
'This method is being removed to reduce dependency on flutter_map, and allow '
'full usage of flutter_map functionality without it needing to be '
'semi-implemented here. '
'This feature was deprecated after v9.1.0, and will be removed in the next '
'breaking/major release.',
)
@override
PolygonLayer toDrawable({
Color? fillColor,
Color borderColor = const Color(0x00000000),
double borderStrokeWidth = 3.0,
bool isDotted = false,
String? label,
TextStyle labelStyle = const TextStyle(),
PolygonLabelPlacement labelPlacement = PolygonLabelPlacement.polylabel,
}) =>
PolygonLayer(
polygons: [
Polygon(
points: toOutline().toList(),
color: fillColor,
borderColor: borderColor,
borderStrokeWidth: borderStrokeWidth,
pattern: isDotted
? const StrokePattern.dotted()
: const StrokePattern.solid(),
label: label,
labelStyle: labelStyle,
labelPlacement: labelPlacement,
),
],
);

@override
Iterable<LatLng> toOutline() sync* {
const dist = Distance(roundResult: false, calculator: Haversine());
Expand Down
42 changes: 0 additions & 42 deletions lib/src/regions/custom_polygon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,48 +38,6 @@ class CustomPolygonRegion extends BaseRegion {
crs: crs,
);

/// **Deprecated.** Instead obtain the outline/line/points using other methods,
/// and render the layer manually. This method is being removed to reduce
/// dependency on flutter_map, and allow full usage of flutter_map
/// functionality without it needing to be semi-implemented here. This feature
/// was deprecated after v9.1.0, and will be removed in the next breaking/major
/// release.
@Deprecated(
'Instead obtain the outline/line/points using other methods, and render the '
'layer manually. '
'This method is being removed to reduce dependency on flutter_map, and allow '
'full usage of flutter_map functionality without it needing to be '
'semi-implemented here. '
'This feature was deprecated after v9.1.0, and will be removed in the next '
'breaking/major release.',
)
@override
PolygonLayer toDrawable({
Color? fillColor,
Color borderColor = const Color(0x00000000),
double borderStrokeWidth = 3.0,
bool isDotted = false,
String? label,
TextStyle labelStyle = const TextStyle(),
PolygonLabelPlacement labelPlacement = PolygonLabelPlacement.polylabel,
}) =>
PolygonLayer(
polygons: [
Polygon(
points: outline,
color: fillColor,
borderColor: borderColor,
borderStrokeWidth: borderStrokeWidth,
pattern: isDotted
? const StrokePattern.dotted()
: const StrokePattern.solid(),
label: label,
labelStyle: labelStyle,
labelPlacement: labelPlacement,
),
],
);

@override
List<LatLng> toOutline() => outline;

Expand Down
Loading

0 comments on commit 9c0ca70

Please sign in to comment.