Skip to content

Commit b307b01

Browse files
authored
Merge pull request #18 from cjho0316/main
Remove the Unused Option from Run Parameters
2 parents f3975a6 + 51b78db commit b307b01

File tree

2 files changed

+1
-45
lines changed

2 files changed

+1
-45
lines changed

src/fosslight_android/_common.py

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
CONST_TLSH_NULL = "0"
1212
MODULE_INFO_FILE_NAME = "module-info.json"
1313
MODULE_TYPE_NAME = "MODULE_NAME"
14-
MODULE_TYPE_OUTPUT = "MODULE_OUTPUT"
15-
MODULE_TYPE_INSTALLED = "installed"
16-
NEED_CHECK_WORD = "(NEED_CHECK)"
1714
skip_license = ['Other Proprietary License', 'LGE License', 'LGE Proprietary License']
1815
NOTICE_FILE_NAME = "NOTICE"
1916

@@ -60,9 +57,6 @@ def __init__(self, value):
6057
self.additional_oss_items = []
6158
self.is_new_bin = True
6259

63-
def __del__(self):
64-
pass
65-
6660
def set_bin_name(self, value):
6761
self.bin_name = value
6862

@@ -78,12 +72,6 @@ def set_source_code_path(self, value):
7872
def set_module_name(self, value):
7973
self.module_name = value
8074

81-
def set_exclude(self, value):
82-
if value:
83-
self.exclude = "Exclude"
84-
else:
85-
self.exclude = ""
86-
8775
def set_notice(self, value):
8876
self.notice = value
8977

@@ -109,15 +97,6 @@ def set_oss_name(self, value):
10997
def set_oss_version(self, value):
11098
self.oss_version = value
11199

112-
def set_url(self, value):
113-
self.url = value
114-
115-
def set_homepage(self, value):
116-
self.homepage = value
117-
118-
def set_download_location(self, value):
119-
self.download_location = value
120-
121100
def get_print_items(self):
122101
print_items_txt = []
123102
print_items_excel = []
@@ -186,25 +165,3 @@ def get_comment(default_comment, license_to_notice, notice_value, empty_columns)
186165
comment = default_comment + comment # Paste Auto ID comment in front.
187166

188167
return comment
189-
190-
191-
def set_value_switch(bin, key, value):
192-
switcher = {
193-
'BinaryName': bin.set_bin_name,
194-
'SourceCodePath': bin.set_source_code_path,
195-
'ModuleName': bin.set_module_name,
196-
'NOTICE': bin.set_notice,
197-
'License': bin.set_license,
198-
'mkFilePath': bin.mk_file_path,
199-
'tlsh': bin.set_tlsh,
200-
'checksum': bin.set_checksum,
201-
'OSSName': bin.set_oss_name,
202-
'OSSVersion': bin.set_oss_version,
203-
'Comment': bin.set_comment
204-
}
205-
func = switcher.get(key, lambda key: invalid(key))
206-
func(value)
207-
208-
209-
def invalid(cmd):
210-
print('[{}] is invalid'.format(cmd))

src/fosslight_android/android_binary_analysis.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
def do_multi_process(func, input_list):
9090
manager = multiprocessing.Manager()
9191
return_list = manager.list()
92-
splited_data = np.array_split(input_list, num_cores)
92+
splited_data = np.array_split(input_list, num_cores) # sus
9393
splited_data = [x.tolist() for x in splited_data]
9494

9595
parmap.map(func, splited_data, return_list, pm_pbar=True,
@@ -763,7 +763,6 @@ def main():
763763
notice_check_ok = False
764764
base_binary_txt = ""
765765
auto_fill_oss_name = True
766-
_NOTICE_CHECKLIST_TYPE = False
767766
analyze_source = False
768767
path_to_exclude = []
769768

0 commit comments

Comments
 (0)