summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-09-10 10:05:17 +0200
committerGitHub <noreply@github.com>2020-09-10 10:05:17 +0200
commitf19c400bedf3f975e2e31cfabaaec9446461c68a (patch)
tree0dc8be8a8b0df65444a5c412ac4ab86a6f8d123c
parent0942af841c7a72a0eb29ee2f8e25b3c6313584d2 (diff)
parenta1a2531459faacb2df77430f8ba3882a089e2707 (diff)
Merge pull request #41940 from madmiraal/remove-duplicate-definitions
Remove duplicate or unnecessary Python definitions.
-rwxr-xr-xeditor/translations/extract.py2
-rw-r--r--glsl_builders.py5
2 files changed, 0 insertions, 7 deletions
diff --git a/editor/translations/extract.py b/editor/translations/extract.py
index 0dafd20eed..93124ec30c 100755
--- a/editor/translations/extract.py
+++ b/editor/translations/extract.py
@@ -70,7 +70,6 @@ def _write_message(msgctx, msg, msg_plural, location):
def _add_additional_location(msgctx, msg, location):
global main_po
# Add additional location to previous occurrence.
- msg_pos = -1
if msgctx != "":
msg_pos = main_po.find('\nmsgctxt "' + msgctx + '"\nmsgid "' + msg + '"')
else:
@@ -86,7 +85,6 @@ def _write_translator_comment(msgctx, msg, translator_comment):
return
global main_po
- msg_pos = -1
if msgctx != "":
msg_pos = main_po.find('\nmsgctxt "' + msgctx + '"\nmsgid "' + msg + '"')
else:
diff --git a/glsl_builders.py b/glsl_builders.py
index af9afcae70..e1a6e41bea 100644
--- a/glsl_builders.py
+++ b/glsl_builders.py
@@ -211,11 +211,6 @@ def build_raw_header(filename):
fd.close()
-def build_rd_headers(target, source, env):
- for x in source:
- build_rd_header(str(x))
-
-
def build_raw_headers(target, source, env):
for x in source:
build_raw_header(str(x))