Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
236cd833
Commit
236cd833
authored
Mar 19, 2018
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PathList] Remove unused method
parent
4739ff19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
28 deletions
+0
-28
path_list.rb
lib/cocoapods/sandbox/path_list.rb
+0
-19
path_list_spec.rb
spec/unit/sandbox/path_list_spec.rb
+0
-9
No files found.
lib/cocoapods/sandbox/path_list.rb
View file @
236cd833
...
@@ -215,25 +215,6 @@ module Pod
...
@@ -215,25 +215,6 @@ module Pod
end
end
end
end
# Escapes the glob metacharacters from a given path so it can used in
# Dir#glob and similar methods.
#
# @note See CocoaPods/CocoaPods#862.
#
# @param [String, Pathname] path
# The path to escape.
#
# @return [Pathname] The escaped path.
#
def
escape_path_for_glob
(
path
)
result
=
path
.
to_s
characters_to_escape
=
[
'['
,
']'
,
'{'
,
'}'
,
'?'
,
'*'
]
characters_to_escape
.
each
do
|
character
|
result
.
gsub!
(
character
,
"
\\
#{
character
}
"
)
end
Pathname
.
new
(
result
)
end
#-----------------------------------------------------------------------#
#-----------------------------------------------------------------------#
end
end
end
end
...
...
spec/unit/sandbox/path_list_spec.rb
View file @
236cd833
...
@@ -260,15 +260,6 @@ module Pod
...
@@ -260,15 +260,6 @@ module Pod
end
end
#--------------------------------------#
#--------------------------------------#
describe
'#escape_path_for_glob'
do
it
'escapes metacharacters'
do
escaped
=
@path_list
.
send
(
:escape_path_for_glob
,
'[]{}?**'
)
escaped
.
to_s
.
should
==
'\[\]\{\}\?\*\*'
end
end
#--------------------------------------#
end
end
#-------------------------------------------------------------------------#
#-------------------------------------------------------------------------#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment