Skip to content

Commit

Permalink
Drop unnecessary constructors (#105)
Browse files Browse the repository at this point in the history
When a class has no other constructors it is unnecessary and
non-idiomatic to define the default empty constructor.
  • Loading branch information
natebosch committed Feb 9, 2021
1 parent 407ab76 commit 49a015d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 1.8.1-dev

## 1.8.0

* Stable release for null safety.
Expand Down
2 changes: 0 additions & 2 deletions lib/src/style/posix.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import '../parsed_path.dart';

/// The style for POSIX paths.
class PosixStyle extends InternalStyle {
PosixStyle();

@override
final name = 'posix';
@override
Expand Down
2 changes: 0 additions & 2 deletions lib/src/style/url.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import '../utils.dart';

/// The style for URL paths.
class UrlStyle extends InternalStyle {
UrlStyle();

@override
final name = 'url';
@override
Expand Down
2 changes: 0 additions & 2 deletions lib/src/style/windows.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ const _asciiCaseBit = 0x20;

/// The style for Windows paths.
class WindowsStyle extends InternalStyle {
WindowsStyle();

@override
final name = 'windows';
@override
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: path
version: 1.8.0
version: 1.8.1-dev

description: >-
A string-based path manipulation library. All of the path operations you know
Expand Down

0 comments on commit 49a015d

Please sign in to comment.