mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 05:05:23 +03:00
Remove an unused regular expression
This commit is contained in:
parent
1101d4fddc
commit
c94d2d9256
@ -5,12 +5,10 @@ class SVGParserRegexHelper {
|
||||
fileprivate static let transformAttributePattern = "([a-z]+)\\(((\\-?\\d+\\.?\\d*e?\\-?\\d*\\s*,?\\s*)+)\\)"
|
||||
fileprivate static let transformPattern = "\\-?\\d+\\.?\\d*e?\\-?\\d*"
|
||||
fileprivate static let textElementPattern = "<text.*?>((?s:.*))<\\/text>"
|
||||
fileprivate static let maskIdenitifierPattern = "url\\(#((?s:.*))\\)"
|
||||
|
||||
fileprivate static var transformMatcher: NSRegularExpression?
|
||||
fileprivate static var transformAttributeMatcher: NSRegularExpression?
|
||||
fileprivate static var textElementMatcher: NSRegularExpression?
|
||||
fileprivate static var maskIdenitifierMatcher: NSRegularExpression?
|
||||
|
||||
class func getTransformAttributeMatcher() -> NSRegularExpression? {
|
||||
if self.transformAttributeMatcher == nil {
|
||||
@ -44,15 +42,4 @@ class SVGParserRegexHelper {
|
||||
}
|
||||
return self.textElementMatcher
|
||||
}
|
||||
|
||||
class func getMaskIdenitifierMatcher() -> NSRegularExpression? {
|
||||
if self.maskIdenitifierMatcher == nil {
|
||||
do {
|
||||
self.maskIdenitifierMatcher = try NSRegularExpression(pattern: maskIdenitifierPattern, options: .caseInsensitive)
|
||||
} catch {
|
||||
|
||||
}
|
||||
}
|
||||
return self.maskIdenitifierMatcher
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user