| Index: pkg/analysis_server/lib/src/services/correction/strings.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/correction/strings.dart b/pkg/analysis_server/lib/src/services/correction/strings.dart
|
| index b58a9d761d815b6c739deb04441c34e3aa6856f5..3c44fb626d5875c576330e55f5a55d44537e355f 100644
|
| --- a/pkg/analysis_server/lib/src/services/correction/strings.dart
|
| +++ b/pkg/analysis_server/lib/src/services/correction/strings.dart
|
| @@ -6,7 +6,6 @@ library services.src.correction.strings;
|
|
|
| import 'dart:math';
|
|
|
| -
|
| /**
|
| * "$"
|
| */
|
| @@ -22,7 +21,6 @@ const int CHAR_DOT = 0x2E;
|
| */
|
| const int CHAR_UNDERSCORE = 0x5F;
|
|
|
| -
|
| String capitalize(String str) {
|
| if (isEmpty(str)) {
|
| return str;
|
| @@ -163,7 +161,6 @@ bool isWhitespace(int c) {
|
| return isSpace(c) || c == 0x0D || c == 0x0A;
|
| }
|
|
|
| -
|
| String remove(String str, String remove) {
|
| if (isEmpty(str) || isEmpty(remove)) {
|
| return str;
|
| @@ -171,7 +168,6 @@ String remove(String str, String remove) {
|
| return str.replaceAll(remove, '');
|
| }
|
|
|
| -
|
| String removeEnd(String str, String remove) {
|
| if (isEmpty(str) || isEmpty(remove)) {
|
| return str;
|
| @@ -182,7 +178,6 @@ String removeEnd(String str, String remove) {
|
| return str;
|
| }
|
|
|
| -
|
| String removeStart(String str, String remove) {
|
| if (isEmpty(str) || isEmpty(remove)) {
|
| return str;
|
| @@ -193,7 +188,6 @@ String removeStart(String str, String remove) {
|
| return str;
|
| }
|
|
|
| -
|
| String repeat(String s, int n) {
|
| StringBuffer sb = new StringBuffer();
|
| for (int i = 0; i < n; i++) {
|
| @@ -202,7 +196,6 @@ String repeat(String s, int n) {
|
| return sb.toString();
|
| }
|
|
|
| -
|
| /**
|
| * Gets the substring after the last occurrence of a separator.
|
| * The separator is not returned.
|
|
|