Skip to content

Commit

Permalink
Remove unused title generation (#3006)
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough authored Jun 17, 2024
1 parent 16d3e8b commit 0b112d5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion pkgs/dartpad_ui/lib/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class AppServices {
appModel.sourceCodeController.text = source;

// Reset the title.
appModel.title.value = generateSnippetName();
appModel.title.value = '';

// Reset the console.
appModel.clearConsole();
Expand Down
4 changes: 0 additions & 4 deletions pkgs/dartpad_ui/lib/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import 'dart:async';
import 'package:collection/collection.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:fluttering_phrases/fluttering_phrases.dart'
as fluttering_phrases;

import 'theme.dart';

Expand All @@ -20,8 +18,6 @@ String titleCase(String phrase) {
return phrase.substring(0, 1).toUpperCase() + phrase.substring(1);
}

String generateSnippetName() => fluttering_phrases.generate();

RelativeRect calculatePopupMenuPosition(
BuildContext context, {
bool growUpwards = false,
Expand Down
1 change: 0 additions & 1 deletion pkgs/dartpad_ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dependencies:
flutter_markdown: ^0.7.2
flutter_web_plugins:
sdk: flutter
fluttering_phrases: ^1.0.0
go_router: ^14.1.4
google_fonts: ^6.2.1
http: ^1.2.1
Expand Down

0 comments on commit 0b112d5

Please sign in to comment.