Skip to content

Commit b1f2f37

Browse files
committed
removed unused members, removed explicit documentation link
updated homepage to use TLS
1 parent cd63511 commit b1f2f37

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

lib/xml/utils/entities.dart

-23
Original file line numberDiff line numberDiff line change
@@ -85,29 +85,6 @@ class _XmlCharacterDataParser extends Parser {
8585

8686
}
8787

88-
/**
89-
* Decode a string with numeric character references and common named entities
90-
* to a plain string.
91-
*/
92-
@deprecated
93-
String _decodeXml(String input) {
94-
return input.replaceAllMapped(_ENTITY_PATTERN, (match) {
95-
if (match.group(2) != null) {
96-
// hexadecimal numeric character reference
97-
return new String.fromCharCode(int.parse(match.group(2), radix: 16));
98-
} else if (match.group(3) != null) {
99-
// decimal numeric character reference
100-
return new String.fromCharCode(int.parse(match.group(3)));
101-
} else if (_ENTITY_TO_CHAR.containsKey(match.group(4))) {
102-
// named character reference
103-
return _ENTITY_TO_CHAR[match.group(4)];
104-
} else {
105-
// unknown character reference (throw error?)
106-
return match.group(0);
107-
}
108-
});
109-
}
110-
11188
@deprecated
11289
final Pattern _ENTITY_PATTERN = new RegExp(r'&(#[xX]([A-Fa-f0-9]+)|#(\d+)|(\w+));');
11390

pubspec.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
name: xml
2-
version: 2.2.1
2+
version: 2.2.2-dev
33
author: Lukas Renggli <[email protected]>
44
description: A lightweight library for parsing, traversing, querying and building XML documents.
5-
homepage: http://github.com/renggli/dart-xml
5+
homepage: https://github.com/renggli/dart-xml
66
environment:
77
sdk: '>=1.0.0 <2.0.0'
8-
documentation: http://jenkins.lukas-renggli.ch/job/dart-xml/javadoc
98
dependencies:
109
petitparser: '>=1.3.0 <2.0.0'
1110
dev_dependencies:

test/xml_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void assertParseError(String input, String message) {
1616
try {
1717
var result = parse(input);
1818
fail('Expected parse error $message, but got $result');
19-
} on ArgumentError catch (error, stack) {
19+
} on ArgumentError catch (error) {
2020
expect(error.message, message);
2121
}
2222
}

0 commit comments

Comments
 (0)