edje_cc: Remove unused variable 'got_hash' 79/154479/1
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 9 Aug 2016 01:56:29 +0000 (10:56 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Tue, 10 Oct 2017 09:10:08 +0000 (18:10 +0900)
got_hash will always be zero at the point where it's read.

Fixes CID 1261439

Change-Id: I921b66487e22b9badbfd8b071eca735e17ea9006

src/bin/edje/edje_cc_sources.c

index 9b76874..6881571 100644 (file)
@@ -86,7 +86,6 @@ source_fetch_file(const char *fil, const char *filname)
    while (fgets(buf, sizeof(buf), f))
      {
        char *p, *pp;
-       int got_hash = 0;
        int forgetit = 0;
        int haveinclude = 0;
        char *file = NULL, *fname = NULL;
@@ -94,17 +93,12 @@ source_fetch_file(const char *fil, const char *filname)
        p = buf;
        while ((!forgetit) && (*p))
          {
-            if (!got_hash)
-              {
-                 if (!isspace(*p))
-                   {
-                      if (*p == '#')
-                        got_hash = 1;
-                      else
-                        forgetit = 1;
-                   }
-                 p++;
-              }
+             if (!isspace(*p))
+               {
+                  if (*p != '#')
+                    forgetit = 1;
+               }
+             p++;
 
             if (!haveinclude)
               {
@@ -198,9 +192,7 @@ source_fetch_file(const char *fil, const char *filname)
                    }
                  else
                    p++;
-              }
-
-            got_hash = 0;
+               }
          }
        if ((file) && (fname))
           source_fetch_file(file, fname);