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
d323bdaf
Commit
d323bdaf
authored
May 31, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused functions.
parent
ae6887e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
51 deletions
+0
-51
action.py
hdlmake/action/action.py
+0
-22
local.py
hdlmake/fetch/local.py
+0
-8
srcfile.py
hdlmake/srcfile.py
+0
-21
No files found.
hdlmake/action/action.py
View file @
d323bdaf
...
...
@@ -115,28 +115,6 @@ class Action(list):
new_module
.
parse_manifest
()
return
new_module
def
_check_manifest_variable_is_set
(
self
,
name
):
"""Method to check if a specific manifest variable is set"""
if
getattr
(
self
.
top_module
,
name
)
is
None
:
logging
.
error
(
"Variable
%
s must be set in the manifest "
"to perform current action (
%
s)"
,
name
,
self
.
__class__
.
__name__
)
sys
.
exit
(
"
\n
Exiting"
)
def
_check_manifest_variable_value
(
self
,
name
,
value
):
"""Method to check if a manifest variable is set to a specific value"""
variable_match
=
False
manifest_value
=
getattr
(
self
.
top_module
,
name
)
if
manifest_value
==
value
:
variable_match
=
True
if
variable_match
is
False
:
logging
.
error
(
"Variable
%
s must be set in the manifest and equal to '
%
s'."
,
name
,
value
)
sys
.
exit
(
"Exiting"
)
def
build_complete_file_set
(
self
):
"""Build file set with all the files listed in the complete pool"""
logging
.
debug
(
"Begin build complete file set"
)
...
...
hdlmake/fetch/local.py
View file @
d323bdaf
...
...
@@ -30,11 +30,3 @@ class Local(Fetcher):
def
__init__
(
self
):
pass
def
fetch
(
self
,
module
):
pass
@
staticmethod
def
check_md5sum
(
path
):
"""Get the ID for Local sources... maybe sha256 or md5sum?"""
pass
hdlmake/srcfile.py
View file @
d323bdaf
...
...
@@ -373,27 +373,6 @@ class SourceFileSet(set):
out
.
add
(
file_aux
)
return
out
def
inversed_filter
(
self
,
filetype
):
"""Method that filters and returns all of the HDL source files
contained in the instance SourceFileSet NOT matching the provided
type"""
out
=
SourceFileSet
()
for
file_aux
in
self
:
if
not
isinstance
(
file_aux
,
filetype
):
out
.
add
(
file_aux
)
return
out
def
get_libs
(
self
):
"""Method that returns a set containing all of the libraries that are
provided by any of the source files in the SourceFileSet"""
ret
=
set
()
for
file_aux
in
self
:
try
:
ret
.
add
(
file_aux
.
library
)
except
TypeError
:
pass
return
ret
def
create_source_file
(
path
,
module
,
library
=
None
,
include_dirs
=
None
,
is_include
=
False
):
...
...
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