Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
a1264c45
Commit
a1264c45
authored
Jun 07, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep_file.py: remove unused functions.
parent
3ff20112
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
dep_file.py
hdlmake/dep_file.py
+0
-33
No files found.
hdlmake/dep_file.py
View file @
a1264c45
...
...
@@ -127,30 +127,9 @@ class File(object):
def
__str__
(
self
):
return
self
.
path
def
__eq__
(
self
,
other
):
_not_found
=
object
()
path_self
,
path_other
=
[
getattr
(
obj
,
"path"
,
_not_found
)
for
obj
in
[
self
,
other
]]
if
path_self
is
_not_found
or
path_other
is
_not_found
:
return
False
elif
path_self
!=
path_other
:
return
False
return
True
def
__hash__
(
self
):
return
hash
(
self
.
path
)
def
__cmp__
(
self
,
other
):
if
self
.
path
<
other
.
path
:
return
-
1
if
self
.
path
==
other
.
path
:
return
0
if
self
.
path
>
other
.
path
:
return
1
def
__ne__
(
self
,
other
):
return
not
self
.
__eq__
(
other
)
def
extension
(
self
):
"""Method that gets the extension for the file instance"""
tmp
=
self
.
path
.
rsplit
(
'.'
)
...
...
@@ -183,18 +162,6 @@ class DepFile(File):
# self._parse_if_needed()
return
any
([
x
.
satisfies
(
rel_b
)
for
x
in
self
.
rels
])
def
show_relations
(
self
):
"""Print the file relations to stdout: can be used for logging"""
# self._parse_if_needed()
for
relation
in
self
.
rels
:
print
(
str
(
relation
))
@
property
def
filename
(
self
):
"""Property defined as a method that checks the basename of the file
path in the host, i.e. the name of the last directory on the path"""
return
os
.
path
.
basename
(
self
.
file_path
)
def
get_dep_level
(
self
):
"""Get the dependency level for the file instance, so we can order
later the full fileset"""
...
...
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