Skip to content

Commit

Permalink
Merge pull request #11 from swift-tweets/dev-0.2.1
Browse files Browse the repository at this point in the history
Remove `replacingOccurrences` of StringExtensions
  • Loading branch information
koher authored Jan 8, 2018
2 parents 3829315 + 2097068 commit 71f0117
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Sources/TweetupKit/StringExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ extension String {
return lines
}

internal func replacingOccurrences(of pattern: NSRegularExpression, with template: String) -> String {
return pattern.stringByReplacingMatches(in: self, options: [], range: NSMakeRange(0, characters.count), withTemplate: template)
}

internal var deletingLastPathComponent: String {
return (self as NSString).deletingLastPathComponent
}
Expand Down

0 comments on commit 71f0117

Please sign in to comment.