[os_detect] Remove bin/os_detect.dart (#1015)
diff --git a/pkgs/os_detect/CHANGELOG.md b/pkgs/os_detect/CHANGELOG.md
index 990b3f8..e307aee 100644
--- a/pkgs/os_detect/CHANGELOG.md
+++ b/pkgs/os_detect/CHANGELOG.md
@@ -4,6 +4,7 @@
 - Add data-driven fixes to support migration to package:platform.
 - Run `dart format` with the new style.
 - Require Dart 3.10.
+- Remove `bin/os_detect.dart` (already covered by `example/example.dart`).
 
 ## 2.0.3
 
diff --git a/pkgs/os_detect/bin/os_detect.dart b/pkgs/os_detect/bin/os_detect.dart
deleted file mode 100644
index 7669177..0000000
--- a/pkgs/os_detect/bin/os_detect.dart
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2023, the Dart project authors.  Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/// Prints the operating system detected by the current compilation environment.
-library;
-
-import 'package:os_detect/os_detect.dart' as os_detect;
-
-void main() {
-  final knownName = knownOSName();
-  print(
-    'OS name    : ${os_detect.operatingSystem} '
-    '${knownName != null ? '($knownName)' : ''}',
-  );
-  print('OS version : ${os_detect.operatingSystemVersion}');
-}
-
-String? knownOSName() {
-  if (os_detect.isAndroid) {
-    return 'Android';
-  }
-  if (os_detect.isBrowser) {
-    return 'Browser';
-  }
-  if (os_detect.isFuchsia) {
-    return 'Fuchsia';
-  }
-  if (os_detect.isIOS) {
-    return 'iOS';
-  }
-  if (os_detect.isLinux) {
-    return 'Linux';
-  }
-  if (os_detect.isMacOS) {
-    return 'MacOS';
-  }
-  if (os_detect.isWindows) {
-    return 'Windows';
-  }
-  return null;
-}