From 9e6e1ebe58d04f948433b31f44c03fea2aec93be Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 24 Feb 2017 11:57:05 +0100
Subject: [PATCH] tweaks: remove a disabled warning, and adjust a translator
 hint

---
 src/files.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/files.c b/src/files.c
index 655408db..dac96ac1 100644
--- a/src/files.c
+++ b/src/files.c
@@ -146,13 +146,9 @@ void set_modified(void)
     if (!ISSET(LOCKING) || openfile->filename[0] == '\0')
 	return;
 
-    if (openfile->lock_filename == NULL) {
-	/* TRANSLATORS: Keep the next ten messages at most 76 characters. */
-//	statusline(ALERT, _("Warning: Modifying a file which is not locked,"
-//			" check directory permission?"));
-	;
-    } else {
+    if (openfile->lock_filename != NULL) {
 	char *fullname = get_full_path(openfile->filename);
+
 	write_lockfile(openfile->lock_filename, fullname, TRUE);
 	free(fullname);
     }
@@ -188,6 +184,7 @@ int write_lockfile(const char *lockfilename, const char *origfilename, bool modi
 
     /* First run things that might fail before blowing away the old state. */
     if ((mypwuid = getpwuid(myuid)) == NULL) {
+	/* TRANSLATORS: Keep the next eight messages at most 76 characters. */
 	statusline(MILD, _("Couldn't determine my identity for lock file "
 				"(getpwuid() failed)"));
 	goto free_the_data;
-- 
GitLab