kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=f625824349059f309c9365d536c30cce1852ab93

commit f625824349059f309c9365d536c30cce1852ab93
Author: Kim Woelders <k...@woelders.dk>
Date:   Mon Dec 14 17:41:15 2020 +0100

    Configuration parsing cleanups
    
    Drop some CONFIG_VERSION cases that shouldn't be needed.
---
 src/aclass.c      | 2 --
 src/menus.c       | 3 ---
 src/windowmatch.c | 1 -
 3 files changed, 6 deletions(-)

diff --git a/src/aclass.c b/src/aclass.c
index 02cf307f..e49bbf64 100644
--- a/src/aclass.c
+++ b/src/aclass.c
@@ -296,8 +296,6 @@ AclassConfigLoad(FILE * fs)
        i2 = atoi(s2);
        switch (i1)
          {
-         case CONFIG_VERSION:
-            break;
          case CONFIG_ACTIONCLASS:
             err = -1;
             if (i2 != CONFIG_OPEN)
diff --git a/src/menus.c b/src/menus.c
index 703dbc23..00fc559f 100644
--- a/src/menus.c
+++ b/src/menus.c
@@ -1780,9 +1780,6 @@ MenuConfigLoad(FILE * fs)
          default:
             break;
 
-         case CONFIG_VERSION:
-            continue;
-
          case CONFIG_MENU:
             err = -1;
             i2 = atoi(s2);
diff --git a/src/windowmatch.c b/src/windowmatch.c
index 2916aae4..3aa84485 100644
--- a/src/windowmatch.c
+++ b/src/windowmatch.c
@@ -143,7 +143,6 @@ WindowMatchConfigLoad(FILE * fs)
        i1 = ConfigParseline1(s, s2, &p2, NULL);
        switch (i1)
          {
-         case CONFIG_VERSION:
          case CONFIG_WINDOWMATCH:
             err = -1;
             break;

-- 


Reply via email to